Reference

XKeyEvent(3) on Linux

The text fe02e2f2612f, as Debian 6.0 (Squeeze) shipped it.

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

XKeyEvent(3) on Linux now