It's used directly in tests/keyboard/test-keyboard-shortcuts.c
This tests if the shortcuts generated from an event are in the format that the shell expects.