If your playing battlefield 3 and every time you run your guy starts spinning and you have to restart the game to make it stop

and than he does it again there's 3 simple solutions to this problem

1. You can hold Alt+tab and make it go to the desktop then click on the game

or you can do the simple way

2. You can hit the ~ button when it gets stuck and then hit it again and it will stop until you start running again

3. You can load the last check point

all these solutions are only temporary until you start running and activate the mouse problem

if you don't run in the game you should be fine