Unplug and try a different mouse.
Unplug and disconnect any other peripherals except the mouse and try that.
Try a new user on windows (user space apps)
Try a fresh install (system stuff)
If you have spinning rust try another hard drive (an app doing stupid blocking exclusive stuff with writing or reading can pause input stuff).