Odd that the mouse pointer still moves.
A legacy of using a mouse on a single process (save TSR programs) MS-DOS 286-- Skipping a lot mumbo jumbo, a perverse amount of effort has gone into keeping the mouse moving smoothly (on all platforms). The mouse and the keyboard tend to be on a fairly asynchronous fast path.
There's some decent advice here. The possibility of a thermal issue is less likely as that will usually cause a system to straight up shutdown (to save itself), though, as was said, it may be exacerbating some other issue. Assuming your computer has more than 1 core (built in the last 7 years), no one non-malicious thing should be hammering all of the cores like that. As was also mentioned, it could very well be the system blocking while trying to write bad blocks on your hard disk. Run a disk scan, and look at the SMART tools for your OS. Back your shit up now, not later. It could also be some failing component / bad driver sending your OS for a loop. It could still also be some malware or truly retarded program...
-Check your disk.
-Backup your disk.
-Update your BIOS, Firmware, Drivers.
-Login to the actual Windows update, and do all of those you can. (Sometimes MS autoupdate won't install some things, or will block, or fail.)
-Update your virus / malware scanners.
-Scan the system.
-Disable stupid stuff at startup.
-Check for dust, get a hand vac or a can of compressed air.
Really, you could pretty much repeat that list for anything. In fact you should probably be doing that monthly (at a minimum) on Windows.