My laptop does this a lot, but why? This drives me crazy also. If anyone finds a solution,Please let me know. Thanks.
My fingers hit the mouse pad and this happens to me all the time, if you have a laptop this will happen.
I don't think your cursor agrees with what your writing, therefore, it has decided to run away from you and your words.
Maybe u need a sturdier place to hold your laptop?