Are you on a laptop? Does it have a physical touchpad? If so, that type of "wandering cursor" symptom can sometimes be caused by accidentally touching an overly sensitive touchpad with the palms of your hands while you type.
That would be almost entirely random though. If what you're experiencing literally affects every 7th word, even if you type very, very carefully, then there's some sort of software purposefully doing that.