Random bug does not allow me to move

Randomly. the game will make it so that even if i left click, it will not move my character. It can be fixed by leaving the area with a song of escape or any other way to get a loading screen, but is rather inconvenient. I know that it is not my mouse as that works fine. This has happened in dungeons and makes is so that i have to roll my way through it or just hope it resolves itself.