Define InputHandler type