Reference

XKeyEvent(3x) on Linux

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

KeyPress, KeyRelease, ButtonPress, ButtonRelease, and MotionNotify event structures

XKeyEvent(3x) on Linux now