[SOLVED] The player spins slowly when you don't move the mouse

I have it set so that the character points at your mouse on the screen, but sometimes it will randomly start spinning slowly when you stop moving the mouse. I’m not sure if this is a bug, or just me being an idiot but I can’t figure it out.

Link to game: https://flowlab.io/game/view/1474078

Video of the bug: https://www.youtube.com/watch?v=SQzErZ7TcaU

Turns out I had rotation on, and when I ran into something it would spin me xD