| libxkbcommon 1.9.2
    Library implementing the XKB specification for parsing                           keyboard descriptions and handling keyboard state | 
The documentation of the log messages is a work in progress.
e.g. setMods.clearLocks= True;
list of all actions and their parameters
highlight that there is reference counting for the modifiers, e.g. to manage multiple physical keys for the same modifier.