Changes the onInput event handler to onKeyUp