getkey now deals with esc. Writing the main loop in the timer ISR. It gets stuck in an infinite loop.