[PATCH 1/2] ifstats.c: detstats(): keyboard event handling cleanup