Reference

XKeyEvent(3) on Linux

The text 2ea8c7cecb39, as Debian 5.0 (Lenny) shipped it.

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

XKeyEvent(3) on Linux now