Keyboard Shortcut Block
Renders a keyboard shortcut as styled, raised keycap badges, like Ctrl + C, instead of writing it as plain text.

Adding the block#
Add a Keyboard Shortcut block from the block inserter, then fill in:
- Keys: comma-separated, for example
Cmd, Shift, P. - Separator: choose + (combine) for keys pressed together, or → (sequence) for keys pressed one after another.
- Label (optional): text shown before the keys, for example “Open command palette:”.
Example:
Example#
Keys Cmd, Shift, P with the + separator renders as:
Cmd + Shift + P
The same keys with the → separator instead renders as:
Cmd → Shift → P
Use + for a combination pressed at once, and → for a sequence of separate key presses (common for editor commands or multi-step shortcuts).
Appearance#
Each key renders as a raised keycap using your theme’s card background and border colors (see Theming with CSS Variables), so it looks like a physical key regardless of your site’s color scheme.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!