Reference

XkbLatchModifiers(3) on Linux

The text 18fd02a9284c, as Debian 11 (Bullseye) shipped it.

Latches and unlatches any of the eight real keyboard modifiers

XkbLatchModifiers(3) on Linux now