added nice routine to get user input if a key is pressed during
a countdown timer