# List currently defined keyboard shortcuts

**URL:** <https://discourse.mcneel.com/t/list-currently-defined-keyboard-shortcuts/220451>\
**Category:** Scripting\
**Tags:** windows, keyboardshortscuts\
**Created:** [June 30, 2026, 5:37pm UTC](https://discourse.mcneel.com/t/list-currently-defined-keyboard-shortcuts/220451 "2026-06-30T17:37:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano\_Menci](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/stefano_menci/32/762395_2.png) [@Stefano\_Menci](https://discourse.mcneel.com/u/Stefano_Menci)\
**Post date:** [June 30, 2026, 5:37pm UTC](https://discourse.mcneel.com/t/list-currently-defined-keyboard-shortcuts/220451/1 "2026-06-30T17:37:14Z")

</div>

I realized I kept defining keyboard shortcuts that I already had, simply because I had forgotten about them. So I made a small script to print the full list.

The output uses tabs, so it should be easy to copy and paste into Excel.

Here is the script:

```python
import Rhino

shortcuts = Rhino.ApplicationSettings.ShortcutKeySettings.GetShortcuts()
rows = []
for shortcut in shortcuts:
    key = shortcut.Key
    if shortcut.Modifier:
        modifiers = str(shortcut.Modifier).replace("MacCommand", "Ctrl").split(", ")
    else:
        modifiers = []
    rows.append(["+".join([*modifiers, str(key)]), shortcut.Macro])

rows.sort(key=lambda r: r[0].lower())
print("Shortcut\tMacro")
for shortcut_text, macro in rows:
    print(f"{shortcut_text}\t{macro}")

```
