This video walks you through troubleshooting erratic cursor movement by disconnecting external devices. Rebooting the system with no external devices helps identify if an external device is causing the issue.
To determine if another input device is causing the erratic cursor movement. Disconnect any external devices. Test the computer to see if the issue still occurs. It's also a good idea to reboot the system with the external devices disconnected to perform a clean test.