If you switch to a VT (Ctrl+Alt+F1) and then back (Alt+F7), do the
keyboard and mouse start working again?
No, I tried that too. Both are completely unresponsive! There have been cases that I could remotely
login via ssh to the machine and cleanly reboot it but in some cases I couldn't even do that and only a hard "Power off" could restore the system...