Reference

XUngrabKeyboard(3x) on Linux

The text ea6986771a1b, as Debian 1.2 (Rex) shipped it.

grab the keyboard

XUngrabKeyboard(3x) on Linux now