Sometimes when I use VMware Workstation I suddenly might find that my CTRL, shift and capslock keys do not work when I am back in Xorg.

I have yet to find out exactly what happens but running setxkbmap from a terminal (without any arguments) fixes the problem.

(This workaround was found in the VMware Community forums)

Weird.