I'm trying to add a chat system to my game and I have a "if Right Arrow down" event to move my character. I also have a "on Return pressed" to bring up the chatbox.
The problem I'm having is when I hold "Right arrow down" and press "Return" to bring up the chatbox, I force the character to stop in its current position. However, when I press "Return" again to send the message and close the chat box, the character automatically runs right even though no button is being pressed (as if once you are focused on the textbox, it ignores you releasing a key and keeps it down).
Is there any way around this?