Requires: WordPress 5.8+, PHP 7.4+
[btkbd] for ⌘⇧⌥⌃-style output anywhere shortcodes are supported.btkbd keyboard keys using WordPress’s built-in Additional CSS editorbt-keyboard-shortcuts folder to /wp-content/plugins/.
In the block or classic editor, use the formatting dropdown and choose Insert keyboard shortcut to open the shortcut dialog.

In the Keyboard shortcut dialog, check modifier keys (Win/Alt/Shift/Ctrl/Fn), enter the main key, and use the generated shortcode. Click Insert to add it to the content.

Under Settings → Keyboard Shortcuts (or via the plugin’s Settings link), you can:
.btkbd keyboard keys.
| Syntax | Example | Output |
|---|---|---|
| Modifiers + key | [btkbd cmd shift p] |
⌘⇧P (symbols, combined) |
| Shortcut symbols | [btkbd $@p] |
⌘⇧P |
| Hyphenated text | [btkbd Command-Shift-P] |
⌘⇧P |
| Arrow keys | [btkbd right] |
→ Right Arrow |
Display format (symbols/text and plus separators) is controlled by plugin settings.
cmd/command, ctrl/control, opt/alt, shift, fn, hyper
You can also use symbol shorthand in the shortcode: $ (Shift), @ (Command/Win), ~ (Option), ^ (CTRL). For example, [btkbd @$p] renders as ⇧⌘P.
Modifier keys are automatically rearranged to match the order recommended by Apple in their Human Interface Guidelines (e.g. ⌃ ⌥ ⇧ ⌘ before the key), regardless of the order you type them.
tab, return, enter, delete, esc, right, left, up, down, pgup, pgdn, home, end, space, caps, f1–f12
On the frontend, the shortcode renders as styled keycaps (e.g. ⇧ ⌘ L and ⌥ ⌘ V), using your display settings and theme/CSS styling.

GPLv2 or later.