The characters in Minecraft move on their own not because of your mouse but due to your keyboard. The keyboard comprehensively regulates the movement, and it sets the bar and faultiness. Mostly, the 'W A S D' commands your character's movement. A defect or damage to that switch will make your character move erratically. Sometimes, you won't even move while you press and hold them.