Formats a keyboard shortcut key name into a human friendly label for tooltips.
ctrl/control/meta are the primary command modifier and are shown as Command on macOS
and Ctrl on other platforms, so the label always matches the key the user actually presses.
Parameters
key: string
key name from a keyboard shortcut config (e.g. ctrl, shift, z)
Formats a keyboard shortcut key name into a human friendly label for tooltips.
ctrl/control/metaare the primary command modifier and are shown asCommandon macOS andCtrlon other platforms, so the label always matches the key the user actually presses.