Was it a hardware lock, or software. IN other words, did the mouse still move or not?
Hardware locks are usually caused by power blips (sags and spikes), over heating, or the power supply slowly dying. Software can be anything, including corrupted DLLs.