Added InputHandler class -to be continued-