Reworked ASCII key handling in main loop.