Added own eventhandler for textinput purposes