laptop's moving cursor

Solution
95% of the time it's hands hitting the touchpad while using the keyboard, disable the touchpad in the mouse options and use an external mouse, if that helps things, lower the sensitivity or watch where you put your hands while typing.