inputHandler class