Input class partially done

Keyboard input done. You can test it by moving the four dots around the
screen with the arrow keys.