When I enter into TextBox, other input actions also fire

Solved by placing the following function:

  • and the OnKeyDown with the same content into the widget that contains TextBox.