Reference

XUngrabKeyboard(3) on Linux

The text c61700d69d45, as Debian 5.0 (Lenny) shipped it.

grab the keyboard

XUngrabKeyboard(3) on Linux now