When my computer suddenly starts being weird and ignoring mouse buttons and keystrokes, I pull this Oz looking key out of my pocket and turn the keyswitch. It reruns my xmodmap & xkbset commands from my .xsession startup file.
All fixed.
(This only happens once or twice a year, but it can be such a hassle to fix by hand...)