Added some debug printouts in the keyboard handling code.