Moved InputHandler function implementations to source.