Reference

XKeyEvent(3) on Linux

The text a1a3f3fe48f8, as Debian 12 (Bookworm) shipped it.

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

XKeyEvent(3) on Linux now