Reference

XKeyEvent(3x) on Linux

The text a9aed9a35027, as Debian 3.0 (Woody) shipped it.

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

XKeyEvent(3x) on Linux now