this used to happen to me at least 4 times a week and once happened in slave pens causing a wipe >.< I stopped using wasd to move and changed to mouse move (both buttons down) and it doesn't happen anymore. It was a pain to get used to but on the upside I now have wasd to use for something else.