Add an input handler
Hook up the input handler