The problem of Input letter Effect character movement

I input letter “W” “A” “S” “D” into UI of inputfield,then the character will move in the world. how can i fix it?

some options

Thank you,it is useful. maybe i can use some static variable to mark it.but why the inputfield UI not auto override the Input class?