Fixing up some of the coding standard.
Abstracting key codes.
System event queue.