There are two things to stop this, and I find them quiet helpful.
o Have your screen up into the sky, on the game, so when you get back onto the game, you won't click the ground, so you would stay still.
o Get your bio, ETC, into the window part (Where ever you change to) and then that should stop you, since it should be clicking on the thing that you used.
Very bad explained.~