fix KeyBinding and InputBinding problems with TextBox input