fwiw I don't see why this (or ensuing operations, notably cleanMask) would fail. Might be worth trying DebugKeyEvents to see what's going on?http://xmonad.org/xmonad-docs/xmonad-contrib/XMonad-Hooks-DebugKeyEvents.html