Merged Keyboard and Keydown functions

Pause and esc. now work as expected. command prompt shows what key was
pressed again.