This happens when you drag your fingers on or near the touch pad when typing. Sometimes the problem can be improved by making adjustments in the touchpad control panel. The best solution I have found, however, is to install the free utility TouchFreeze.