Added InputHandler with keyboard input tracking.

See tests/input.cpp for an idea of usage.