Sometimes moue/keyboard in X server stops responding due to bugs in the software. There is a better way to recover if you are planning to hard reboot the system.

You can press Ctrl+Alt+Backspace which will kill the current X session and takes you to the initial login screen.

Another way is to move to text login screen using Ctrl+Alt+F2 and then kill the X session after logging in. Later move back to the graphical screen which will be typically present at Ctrl+Alt+F7 or Ctrl+Alt+F1 on Fedora Linux systems.

killall -KILL X