The last question in the xmonad FAQ deals with keyboard lockups. Some applications grab the keyboard and fail to release the grab (I find that VLC does fairly often after watching a fullscreen video).