Implemented (mostly complete) keyboard control