Reference

XUngrabKeyboard(3) on Linux

The text 67ef1f9cab74, as Debian 4.0 (Etch) shipped it.

grab the keyboard

XUngrabKeyboard(3) on Linux now