Skip to component content

Show keyboard shortcuts as readable command keys in concise operator and editor workflows.

Press ⌘ K to open search.

Usage

Use <kbd> to show the exact physical keys a user should press. Wrap each key in its own element and keep the visible sentence around it, so the shortcut stays understandable when copied, translated, or read aloud.

Place keys in the order they are pressed. Use punctuation such as plus signs or commas outside the key elements unless that character is itself a real key, and keep platform-specific variants such as ⌘, Ctrl, Alt, and Esc consistent within the same page.

Do not use Kbd as the only instruction for required work. Pair the shortcut with the visible action name, keep alternate pointer or menu paths available, and reserve shortcut-heavy copy for workflows where keyboard operation is expected.

Single key

Use one key when the action is immediate and the intent is obvious.

Kbd
Dismiss the panel with Esc
<div class="d-inline-flex align-items-center gap-2">
  <span>Dismiss the panel with</span>
  <kbd>Esc</kbd>
</div>

Key combination

Render each key segment separately so combinations remain scannable.

Kbd
Open the command palette with Ctrl + Shift + K
<div class="d-inline-flex align-items-center gap-2">
  <span>Open the command palette with</span>
  <span class="d-inline-flex align-items-center gap-1">
    <kbd>Ctrl</kbd>
    <span class="text-body-secondary">+</span>
    <kbd>Shift</kbd>
    <span class="text-body-secondary">+</span>
    <kbd>K</kbd>
  </span>
</div>

Shortcut sets

Offer alternate combos for one task so the same workflow remains discoverable.

Kbd
Use Ctrl + K for quick actions, or Ctrl + Shift + P to switch to power mode.
<div class="d-inline-flex align-items-center flex-wrap gap-2">
  <span>Use</span>
  <span class="d-inline-flex align-items-center gap-1">
    <kbd>Ctrl</kbd>
    <span class="text-body-secondary">+</span>
    <kbd>K</kbd>
  </span>
  <span>for quick actions, or</span>
  <span class="d-inline-flex align-items-center gap-1">
    <kbd>Ctrl</kbd>
    <span class="text-body-secondary">+</span>
    <kbd>Shift</kbd>
    <span class="text-body-secondary">+</span>
    <kbd>P</kbd>
  </span>
  <span>to switch to power mode.</span>
</div>

RTL

Compare the same shortcut pattern in RTL and English to validate copy and layout before documenting support workflows.

استخدم Ctrl + Shift + K لفتح لوحة الأوامر.
<div dir="rtl">
  <div class="d-inline-flex align-items-center gap-2">
    <span>استخدم</span>
    <span class="d-inline-flex align-items-center gap-1">
      <kbd>Ctrl</kbd>
      <span class="text-body-secondary">+</span>
      <kbd>Shift</kbd>
      <span class="text-body-secondary">+</span>
      <kbd>K</kbd>
    </span>
    <span>لفتح لوحة الأوامر.</span>
  </div>
</div>
השתמש ב־ Ctrl + Shift + K כדי לפתוח את חלון הפקודות.
<div dir="rtl">
  <div class="d-inline-flex align-items-center gap-2">
    <span>השתמש ב־</span>
    <span class="d-inline-flex align-items-center gap-1">
      <kbd>Ctrl</kbd>
      <span class="text-body-secondary">+</span>
      <kbd>Shift</kbd>
      <span class="text-body-secondary">+</span>
      <kbd>K</kbd>
    </span>
    <span>כדי לפתוח את חלון הפקודות.</span>
  </div>
</div>
Use Ctrl + Shift + K to open the command palette.
<div dir="ltr">
  <div class="d-inline-flex align-items-center gap-2">
    <span>Use</span>
    <span class="d-inline-flex align-items-center gap-1">
      <kbd>Ctrl</kbd>
      <span class="text-body-secondary">+</span>
      <kbd>Shift</kbd>
      <span class="text-body-secondary">+</span>
      <kbd>K</kbd>
    </span>
    <span>to open the command palette.</span>
  </div>
</div>

Component reference

Status
Accepted
Runtime
native HTML/CSS
Markup
Bootstrap/native HTML
Reference

For keyboard input guidance, see the Bootstrap Reboot documentation.

Settings

Theme
Choose how Moo UI looks on this device.
Sidebar
Choose how the sidebar sits on the page.
Theme Builder
Tune catalog tokens and chart colors for this browser.
Base color
Theme color
Chart color
Heading font
Body font
Radius
Direction
Choose the reading direction. RTL flips the layout live.
Reset

Restore the default appearance.