It seems like I've located the problem. Because I was doing some numeric input in OpenOffice Calc I enabled num-lock. This seems to change to modMask. So the "solution" is to disable num-lock before giving xmonad commands. However this is not a very user friendly solution. Bas