I found that when I’m holding down an arrow key to move my character, and a pop up/notification that I have to dismiss shows up over my game, the character will be stuck on the arrow key I pressed even after releasing the key. It will continue running in that direction until I close the game and restart it.
For example, a “your battery is low” came up over my game preview on my laptop while I was holding the right key, and my character wouldn’t stop running right after I stopped pressing the key.