In my game, it is intentional for the InputAction to hold the state it’s in while players are typing. The problem is when the game releases focus on the TextBox, the InputAction is still using the previous input state without setting it back to Vector2(0,0). In this example, I was holding W and D, and after I stopped typing in chat, it was still using the input without holding the keys down.
I have another function that does InputAction:Fire( Vector2.new(0,0) ) that works, until I start moving again and it just goes back to whatever input I was previously doing.
In the example file, the LocalScript in the StarterPlayerScripts replicates the same functionality.
InputAction Bug.rbxl (63.6 KB)
Expected behavior
What should happen is when I use InputAction:Fire( Vector2.new(0,0) ), it should set the state and keep it, without it going back to the previous state before the function sets the state.