How can I tell what a particular key combination will do in Blender 2.92
'Is key Free' really does work.  I was just too green to find it once activated.  To find it:

Use the 'Editor Type' dropdown on any window's title bar to select 'Text Editor'.  (Look at the float-over text first to see it's current type to simplify restoration of old content when done.)
In the text editor window, pull down the View menu and insure &quot;Sidebar&quot; is checked
On the right side of the window, click the 'Dev' sidebar tab
'Is key Free' should be on the now active sidebar.

Being a programmer rather than an artist I hacked the code up to give more(useful) info.  The version below, by default, works identical to the original but has 2 extra buttons.  They turn on 'internal values' in 'List all Shortcuts' output.  So, for instance, you can see the difference between the two Render hotkeys.
Default output example:
Render --------------------------- Ctrl F12 
Render -------------------------------- F12

With the [Params] toggle on:
render.render(animation=1,use_viewport=1) ---- Ctrl F12
render.render(use_viewport=1) --------------------- F12

As for mapping hotkeys from versions less than 2.8 to those of 2.8 and above, it seems the only way is to look something up in the old version and use output from this to find it in the newer version.
It's not perfect.  It doesn't translate enums to text.  But these updates should make telling one otherwise identical call from another easier to map.
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
#  of the License, or (at your option) any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software Foundation,
#  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# ##### END GPL LICENSE BLOCK #####

# PEP8 compliant (https://www.python.org/dev/peps/pep-0008)

bl_info = {
    &quot;name&quot;: &quot;Is key Free&quot;,
    &quot;author&quot;: &quot;Antonio Vazquez (antonioya) + Rick Bielawski&quot;,
    &quot;version&quot;: (1, 2, 0),
    &quot;blender&quot;: (2, 80, 0),
    &quot;location&quot;: &quot;Text Editor &gt; Sidebar &gt; Dev Tab&quot;,
    &quot;description&quot;: &quot;Find free shortcuts, inform about used and print a key list&quot;,
    &quot;doc_url&quot;: &quot;{BLENDER_MANUAL_URL}/addons/development/is_key_free.html&quot;,
    &quot;category&quot;: &quot;Development&quot;,
}

import bpy
from bpy.props import (
    BoolProperty,
    EnumProperty,
    StringProperty,
    PointerProperty,
)
from bpy.types import (
    Operator,
    Panel,
    PropertyGroup,
)


# ------------------------------------------------------
# Class to find keymaps
# ------------------------------------------------------

class MyChecker():
    lastfind = None
    lastkey = None
    mylist = []

    # Init
    def __init__(self):
        self.var = 5

    # Verify if the key is used
    @classmethod
    def check(cls, findkey, ctrl, alt, shift, oskey):
        if len(findkey) &gt; 0:
            cmd = &quot;&quot;
            if ctrl is True:
                cmd += &quot;Ctrl+&quot;
            if alt is True:
                cmd += &quot;Alt+&quot;
            if shift is True:
                cmd += &quot;Shift+&quot;
            if oskey is True:
                cmd += &quot;OsKey+&quot;
            cls.lastfind = cmd + findkey.upper()
            cls.lastkey = findkey.upper()
        else:
            cls.lastfind = None
            cls.lastkey = None

        wm = bpy.context.window_manager
        mykeys = []

        for context, keyboardmap in wm.keyconfigs.user.keymaps.items():
            for myitem in keyboardmap.keymap_items:
                if myitem.active is True and myitem.type == findkey:
                    if ctrl is True and myitem.ctrl is not True:
                        continue
                    if alt is True and myitem.alt is not True:
                        continue
                    if shift is True and myitem.shift is not True:
                        continue
                    if oskey is True and myitem.oskey is not True:
                        continue
                    t = (context,
                         myitem.type,
                         &quot;Ctrl&quot; if myitem.ctrl is True else &quot;&quot;,
                         &quot;Alt&quot; if myitem.alt is True else &quot;&quot;,
                         &quot;Shift&quot; if myitem.shift is True else &quot;&quot;,
                         &quot;OsKey&quot; if myitem.oskey is True else &quot;&quot;,
                         myitem.name)

                    mykeys.append(t)

        sortkeys = sorted(mykeys, key=lambda key: (key[0], key[1], key[2], key[3], key[4], key[5]))

        cls.mylist.clear()
        for e in sortkeys:
            cmd = &quot;&quot;
            if e[2] != &quot;&quot;:
                cmd += e[2] + &quot;+&quot;
            if e[3] != &quot;&quot;:
                cmd += e[3] + &quot;+&quot;
            if e[4] != &quot;&quot;:
                cmd += e[4] + &quot;+&quot;
            if e[5] != &quot;&quot;:
                cmd += e[5] + &quot;+&quot;

            cmd += e[1]

            if e[6] != &quot;&quot;:
                cmd += &quot;  &quot; + e[6]
            cls.mylist.append([e[0], cmd])

    # return context
    @classmethod
    def getcontext(cls):
        return str(bpy.context.screen.name)

    # return last search
    @classmethod
    def getlast(cls):
        return cls.lastfind

    # return last key
    @classmethod
    def getlastkey(cls):
        return cls.lastkey

    # return result of last search
    @classmethod
    def getlist(cls):
        return cls.mylist

    # verify if key is valid
    @classmethod
    def isvalidkey(cls, txt):
        allkeys = [
            &quot;LEFTMOUSE&quot;, &quot;MIDDLEMOUSE&quot;, &quot;RIGHTMOUSE&quot;, &quot;BUTTON4MOUSE&quot;, &quot;BUTTON5MOUSE&quot;, &quot;BUTTON6MOUSE&quot;,
            &quot;BUTTON7MOUSE&quot;,
            &quot;MOUSEMOVE&quot;, &quot;INBETWEEN_MOUSEMOVE&quot;, &quot;TRACKPADPAN&quot;, &quot;TRACKPADZOOM&quot;,
            &quot;MOUSEROTATE&quot;, &quot;WHEELUPMOUSE&quot;, &quot;WHEELDOWNMOUSE&quot;, &quot;WHEELINMOUSE&quot;, &quot;WHEELOUTMOUSE&quot;, &quot;EVT_TWEAK_L&quot;,
            &quot;EVT_TWEAK_M&quot;, &quot;EVT_TWEAK_R&quot;, &quot;A&quot;, &quot;B&quot;, &quot;C&quot;, &quot;D&quot;, &quot;E&quot;, &quot;F&quot;, &quot;G&quot;, &quot;H&quot;,
            &quot;I&quot;, &quot;J&quot;,
            &quot;K&quot;, &quot;L&quot;, &quot;M&quot;, &quot;N&quot;, &quot;O&quot;, &quot;P&quot;, &quot;Q&quot;, &quot;R&quot;, &quot;S&quot;, &quot;T&quot;, &quot;U&quot;, &quot;V&quot;, &quot;W&quot;, &quot;X&quot;, &quot;Y&quot;, &quot;Z&quot;, &quot;ZERO&quot;, &quot;ONE&quot;, &quot;TWO&quot;,
            &quot;THREE&quot;, &quot;FOUR&quot;, &quot;FIVE&quot;, &quot;SIX&quot;, &quot;SEVEN&quot;, &quot;EIGHT&quot;, &quot;NINE&quot;, &quot;LEFT_CTRL&quot;, &quot;LEFT_ALT&quot;, &quot;LEFT_SHIFT&quot;,
            &quot;RIGHT_ALT&quot;,
            &quot;RIGHT_CTRL&quot;, &quot;RIGHT_SHIFT&quot;, &quot;OSKEY&quot;, &quot;GRLESS&quot;, &quot;ESC&quot;, &quot;TAB&quot;, &quot;RET&quot;, &quot;SPACE&quot;, &quot;LINE_FEED&quot;,
            &quot;BACK_SPACE&quot;,
            &quot;DEL&quot;, &quot;SEMI_COLON&quot;, &quot;PERIOD&quot;, &quot;COMMA&quot;, &quot;QUOTE&quot;, &quot;ACCENT_GRAVE&quot;, &quot;MINUS&quot;, &quot;SLASH&quot;, &quot;BACK_SLASH&quot;,
            &quot;EQUAL&quot;,
            &quot;LEFT_BRACKET&quot;, &quot;RIGHT_BRACKET&quot;, &quot;LEFT_ARROW&quot;, &quot;DOWN_ARROW&quot;, &quot;RIGHT_ARROW&quot;, &quot;UP_ARROW&quot;, &quot;NUMPAD_2&quot;,
            &quot;NUMPAD_4&quot;, &quot;NUMPAD_6&quot;, &quot;NUMPAD_8&quot;, &quot;NUMPAD_1&quot;, &quot;NUMPAD_3&quot;, &quot;NUMPAD_5&quot;, &quot;NUMPAD_7&quot;, &quot;NUMPAD_9&quot;,
            &quot;NUMPAD_PERIOD&quot;, &quot;NUMPAD_SLASH&quot;, &quot;NUMPAD_ASTERIX&quot;, &quot;NUMPAD_0&quot;, &quot;NUMPAD_MINUS&quot;, &quot;NUMPAD_ENTER&quot;,
            &quot;NUMPAD_PLUS&quot;,
            &quot;F1&quot;, &quot;F2&quot;, &quot;F3&quot;, &quot;F4&quot;, &quot;F5&quot;, &quot;F6&quot;, &quot;F7&quot;, &quot;F8&quot;, &quot;F9&quot;, &quot;F10&quot;, &quot;F11&quot;, &quot;F12&quot;, &quot;F13&quot;, &quot;F14&quot;, &quot;F15&quot;,
            &quot;F16&quot;, &quot;F17&quot;,
            &quot;F18&quot;, &quot;F19&quot;, &quot;PAUSE&quot;, &quot;INSERT&quot;, &quot;HOME&quot;, &quot;PAGE_UP&quot;, &quot;PAGE_DOWN&quot;, &quot;END&quot;, &quot;MEDIA_PLAY&quot;, &quot;MEDIA_STOP&quot;,
            &quot;MEDIA_FIRST&quot;, &quot;MEDIA_LAST&quot;, &quot;TEXTINPUT&quot;, &quot;WINDOW_DEACTIVATE&quot;, &quot;TIMER&quot;, &quot;TIMER0&quot;, &quot;TIMER1&quot;, &quot;TIMER2&quot;,
            &quot;TIMER_JOBS&quot;, &quot;TIMER_AUTOSAVE&quot;, &quot;TIMER_REPORT&quot;, &quot;TIMERREGION&quot;, &quot;NDOF_MOTION&quot;, &quot;NDOF_BUTTON_MENU&quot;,
            &quot;NDOF_BUTTON_FIT&quot;, &quot;NDOF_BUTTON_TOP&quot;, &quot;NDOF_BUTTON_BOTTOM&quot;, &quot;NDOF_BUTTON_LEFT&quot;, &quot;NDOF_BUTTON_RIGHT&quot;,
            &quot;NDOF_BUTTON_FRONT&quot;, &quot;NDOF_BUTTON_BACK&quot;, &quot;NDOF_BUTTON_ISO1&quot;, &quot;NDOF_BUTTON_ISO2&quot;,
            &quot;NDOF_BUTTON_ROLL_CW&quot;,
            &quot;NDOF_BUTTON_ROLL_CCW&quot;, &quot;NDOF_BUTTON_SPIN_CW&quot;, &quot;NDOF_BUTTON_SPIN_CCW&quot;, &quot;NDOF_BUTTON_TILT_CW&quot;,
            &quot;NDOF_BUTTON_TILT_CCW&quot;, &quot;NDOF_BUTTON_ROTATE&quot;, &quot;NDOF_BUTTON_PANZOOM&quot;, &quot;NDOF_BUTTON_DOMINANT&quot;,
            &quot;NDOF_BUTTON_PLUS&quot;, &quot;NDOF_BUTTON_MINUS&quot;, &quot;NDOF_BUTTON_ESC&quot;, &quot;NDOF_BUTTON_ALT&quot;, &quot;NDOF_BUTTON_SHIFT&quot;,
            &quot;NDOF_BUTTON_CTRL&quot;, &quot;NDOF_BUTTON_1&quot;, &quot;NDOF_BUTTON_2&quot;, &quot;NDOF_BUTTON_3&quot;, &quot;NDOF_BUTTON_4&quot;,
            &quot;NDOF_BUTTON_5&quot;,
            &quot;NDOF_BUTTON_6&quot;, &quot;NDOF_BUTTON_7&quot;, &quot;NDOF_BUTTON_8&quot;, &quot;NDOF_BUTTON_9&quot;, &quot;NDOF_BUTTON_10&quot;,
            &quot;NDOF_BUTTON_A&quot;,
            &quot;NDOF_BUTTON_B&quot;, &quot;NDOF_BUTTON_C&quot;
            ]
        try:
            allkeys.index(txt)
            return True
        except ValueError:
            return False


mychecker = MyChecker()  # Global class handler


# ------------------------------------------------------
# Button: Class for search button
# ------------------------------------------------------
class RunActionCheck(Operator):
    bl_idname = &quot;iskeyfree.action_check&quot;
    bl_label = &quot;&quot;
    bl_description = &quot;Verify if the selected shortcut is free&quot;

    # noinspection PyUnusedLocal
    def execute(self, context):
        scene = context.scene.is_keyfree
        txt = scene.data.upper()
        global mychecker
        mychecker.check(txt, scene.use_crtl, scene.use_alt, scene.use_shift,
                        scene.use_oskey)

        return {'FINISHED'}


# ------------------------------------------------------
# Defines UI panel
# ------------------------------------------------------
class UIControlPanel(Panel):
    bl_idname = &quot;DEVISKEYFREE_PT_ui&quot;
    bl_space_type = &quot;TEXT_EDITOR&quot;
    bl_region_type = &quot;UI&quot;
    bl_label = &quot;Is Key Free&quot;
    bl_category = 'Dev'
    bl_options = {'DEFAULT_CLOSED'}

    # noinspection PyUnusedLocal
    def draw(self, context):
        layout = self.layout
        scene = context.scene.is_keyfree

        row = layout.row(align=True)
        row.prop(scene, &quot;data&quot;)
        row.operator(&quot;iskeyfree.action_check&quot;, icon=&quot;VIEWZOOM&quot;)

        row = layout.row(align=True)
        row.prop(scene, &quot;use_crtl&quot;, toggle=True)
        row.prop(scene, &quot;use_alt&quot;, toggle=True)
        row.prop(scene, &quot;use_shift&quot;, toggle=True)
        row.prop(scene, &quot;use_oskey&quot;, toggle=True)

        row = layout.row()
        row.prop(scene, &quot;numpad&quot;)

        layout.operator(&quot;iskeyfree.run_export_keys&quot;, icon=&quot;FILE_TEXT&quot;)

        row = layout.row(align=True)
        row.prop(scene, &quot;report_params&quot;, toggle=True)
        row.prop(scene, &quot;report_keyname&quot;, toggle=True)

        global mychecker
        mylist = mychecker.getlist()
        oldcontext = None

        box = None
        if len(mylist) &gt; 0:
            cmd = mychecker.getlast()
            if cmd is not None:
                row = layout.row()
                row.label(text=&quot;Current uses of &quot; + str(cmd), icon=&quot;PARTICLE_DATA&quot;)
            for e in mylist:
                if oldcontext != e[0]:
                    box = layout.box()
                    box.label(text=e[0], icon=&quot;UNPINNED&quot;)
                    oldcontext = e[0]

                row = box.row(align=True)
                row.label(text=e[1])
        else:
            cmd = mychecker.getlast()
            if cmd is not None:
                box = layout.box()
                if mychecker.isvalidkey(mychecker.getlastkey()) is False:
                    box.label(text=str(mychecker.getlastkey()) + &quot; looks not valid key&quot;, icon=&quot;ERROR&quot;)
                else:
                    box.label(text=str(cmd) + &quot; is free&quot;, icon=&quot;FILE_TICK&quot;)


# ------------------------------------------------------
# Update key (special values) event handler
# ------------------------------------------------------
# noinspection PyUnusedLocal
def update_data(self, context):
    scene = context.scene.is_keyfree
    if scene.numpad != &quot;NONE&quot;:
        scene.data = scene.numpad


class IskeyFreeProperties(PropertyGroup):
    data: StringProperty(
        name=&quot;Key&quot;, maxlen=32,
        description=&quot;Shortcut to verify&quot;
    )
    use_crtl: BoolProperty(
        name=&quot;Ctrl&quot;,
        description=&quot;Ctrl key used in shortcut&quot;,
        default=False
    )
    use_alt: BoolProperty(
        name=&quot;Alt&quot;,
        description=&quot;Alt key used in shortcut&quot;,
        default=False
    )
    use_shift: BoolProperty(
        name=&quot;Shift&quot;,
        description=&quot;Shift key used in shortcut&quot;,
        default=False
    )
    use_oskey: BoolProperty(
        name=&quot;OsKey&quot;,
        description=&quot;Operating system key used in shortcut&quot;,
        default=False
    )
    report_params: BoolProperty(
        name=&quot;Params&quot;,
        description=&quot;Report invoked function and params&quot;,
        default=False
    )
    report_keyname: BoolProperty(
        name=&quot;KeyName&quot;,
        description=&quot;Report internal key name vs interpreted name&quot;,
        default=False
    )
    numpad: EnumProperty(
        items=(
            ('NONE', &quot;Select key&quot;, &quot;&quot;),
            (&quot;LEFTMOUSE&quot;, &quot;LEFTMOUSE&quot;, &quot;&quot;),
            (&quot;MIDDLEMOUSE&quot;, &quot;MIDDLEMOUSE&quot;, &quot;&quot;),
            (&quot;RIGHTMOUSE&quot;, &quot;RIGHTMOUSE&quot;, &quot;&quot;),
            (&quot;BUTTON4MOUSE&quot;, &quot;BUTTON4MOUSE&quot;, &quot;&quot;),
            (&quot;BUTTON5MOUSE&quot;, &quot;BUTTON5MOUSE&quot;, &quot;&quot;),
            (&quot;BUTTON6MOUSE&quot;, &quot;BUTTON6MOUSE&quot;, &quot;&quot;),
            (&quot;BUTTON7MOUSE&quot;, &quot;BUTTON7MOUSE&quot;, &quot;&quot;),
            (&quot;MOUSEMOVE&quot;, &quot;MOUSEMOVE&quot;, &quot;&quot;),
            (&quot;INBETWEEN_MOUSEMOVE&quot;, &quot;INBETWEEN_MOUSEMOVE&quot;, &quot;&quot;),
            (&quot;TRACKPADPAN&quot;, &quot;TRACKPADPAN&quot;, &quot;&quot;),
            (&quot;TRACKPADZOOM&quot;, &quot;TRACKPADZOOM&quot;, &quot;&quot;),
            (&quot;MOUSEROTATE&quot;, &quot;MOUSEROTATE&quot;, &quot;&quot;),
            (&quot;WHEELUPMOUSE&quot;, &quot;WHEELUPMOUSE&quot;, &quot;&quot;),
            (&quot;WHEELDOWNMOUSE&quot;, &quot;WHEELDOWNMOUSE&quot;, &quot;&quot;),
            (&quot;WHEELINMOUSE&quot;, &quot;WHEELINMOUSE&quot;, &quot;&quot;),
            (&quot;WHEELOUTMOUSE&quot;, &quot;WHEELOUTMOUSE&quot;, &quot;&quot;),
            (&quot;EVT_TWEAK_L&quot;, &quot;EVT_TWEAK_L&quot;, &quot;&quot;),
            (&quot;EVT_TWEAK_M&quot;, &quot;EVT_TWEAK_M&quot;, &quot;&quot;),
            (&quot;EVT_TWEAK_R&quot;, &quot;EVT_TWEAK_R&quot;, &quot;&quot;),
            (&quot;A&quot;, &quot;A&quot;, &quot;&quot;),
            (&quot;B&quot;, &quot;B&quot;, &quot;&quot;),
            (&quot;C&quot;, &quot;C&quot;, &quot;&quot;),
            (&quot;D&quot;, &quot;D&quot;, &quot;&quot;),
            (&quot;E&quot;, &quot;E&quot;, &quot;&quot;),
            (&quot;F&quot;, &quot;F&quot;, &quot;&quot;),
            (&quot;G&quot;, &quot;G&quot;, &quot;&quot;),
            (&quot;H&quot;, &quot;H&quot;, &quot;&quot;),
            (&quot;I&quot;, &quot;I&quot;, &quot;&quot;),
            (&quot;J&quot;, &quot;J&quot;, &quot;&quot;),
            (&quot;K&quot;, &quot;K&quot;, &quot;&quot;),
            (&quot;L&quot;, &quot;L&quot;, &quot;&quot;),
            (&quot;M&quot;, &quot;M&quot;, &quot;&quot;),
            (&quot;N&quot;, &quot;N&quot;, &quot;&quot;),
            (&quot;O&quot;, &quot;O&quot;, &quot;&quot;),
            (&quot;P&quot;, &quot;P&quot;, &quot;&quot;),
            (&quot;Q&quot;, &quot;Q&quot;, &quot;&quot;),
            (&quot;R&quot;, &quot;R&quot;, &quot;&quot;),
            (&quot;S&quot;, &quot;S&quot;, &quot;&quot;),
            (&quot;T&quot;, &quot;T&quot;, &quot;&quot;),
            (&quot;U&quot;, &quot;U&quot;, &quot;&quot;),
            (&quot;V&quot;, &quot;V&quot;, &quot;&quot;),
            (&quot;W&quot;, &quot;W&quot;, &quot;&quot;),
            (&quot;X&quot;, &quot;X&quot;, &quot;&quot;),
            (&quot;Y&quot;, &quot;Y&quot;, &quot;&quot;),
            (&quot;Z&quot;, &quot;Z&quot;, &quot;&quot;),
            (&quot;ZERO&quot;, &quot;ZERO&quot;, &quot;&quot;),
            (&quot;ONE&quot;, &quot;ONE&quot;, &quot;&quot;),
            (&quot;TWO&quot;, &quot;TWO&quot;, &quot;&quot;),
            (&quot;THREE&quot;, &quot;THREE&quot;, &quot;&quot;),
            (&quot;FOUR&quot;, &quot;FOUR&quot;, &quot;&quot;),
            (&quot;FIVE&quot;, &quot;FIVE&quot;, &quot;&quot;),
            (&quot;SIX&quot;, &quot;SIX&quot;, &quot;&quot;),
            (&quot;SEVEN&quot;, &quot;SEVEN&quot;, &quot;&quot;),
            (&quot;EIGHT&quot;, &quot;EIGHT&quot;, &quot;&quot;),
            (&quot;NINE&quot;, &quot;NINE&quot;, &quot;&quot;),
            (&quot;LEFT_CTRL&quot;, &quot;LEFT_CTRL&quot;, &quot;&quot;),
            (&quot;LEFT_ALT&quot;, &quot;LEFT_ALT&quot;, &quot;&quot;),
            (&quot;LEFT_SHIFT&quot;, &quot;LEFT_SHIFT&quot;, &quot;&quot;),
            (&quot;RIGHT_ALT&quot;, &quot;RIGHT_ALT&quot;, &quot;&quot;),
            (&quot;RIGHT_CTRL&quot;, &quot;RIGHT_CTRL&quot;, &quot;&quot;),
            (&quot;RIGHT_SHIFT&quot;, &quot;RIGHT_SHIFT&quot;, &quot;&quot;),
            (&quot;OSKEY&quot;, &quot;OSKEY&quot;, &quot;&quot;),
            (&quot;GRLESS&quot;, &quot;GRLESS&quot;, &quot;&quot;),
            (&quot;ESC&quot;, &quot;ESC&quot;, &quot;&quot;),
            (&quot;TAB&quot;, &quot;TAB&quot;, &quot;&quot;),
            (&quot;RET&quot;, &quot;RET&quot;, &quot;&quot;),
            (&quot;SPACE&quot;, &quot;SPACE&quot;, &quot;&quot;),
            (&quot;LINE_FEED&quot;, &quot;LINE_FEED&quot;, &quot;&quot;),
            (&quot;BACK_SPACE&quot;, &quot;BACK_SPACE&quot;, &quot;&quot;),
            (&quot;DEL&quot;, &quot;DEL&quot;, &quot;&quot;),
            (&quot;SEMI_COLON&quot;, &quot;SEMI_COLON&quot;, &quot;&quot;),
            (&quot;PERIOD&quot;, &quot;PERIOD&quot;, &quot;&quot;),
            (&quot;COMMA&quot;, &quot;COMMA&quot;, &quot;&quot;),
            (&quot;QUOTE&quot;, &quot;QUOTE&quot;, &quot;&quot;),
            (&quot;ACCENT_GRAVE&quot;, &quot;ACCENT_GRAVE&quot;, &quot;&quot;),
            (&quot;MINUS&quot;, &quot;MINUS&quot;, &quot;&quot;),
            (&quot;SLASH&quot;, &quot;SLASH&quot;, &quot;&quot;),
            (&quot;BACK_SLASH&quot;, &quot;BACK_SLASH&quot;, &quot;&quot;),
            (&quot;EQUAL&quot;, &quot;EQUAL&quot;, &quot;&quot;),
            (&quot;LEFT_BRACKET&quot;, &quot;LEFT_BRACKET&quot;, &quot;&quot;),
            (&quot;RIGHT_BRACKET&quot;, &quot;RIGHT_BRACKET&quot;, &quot;&quot;),
            (&quot;LEFT_ARROW&quot;, &quot;LEFT_ARROW&quot;, &quot;&quot;),
            (&quot;DOWN_ARROW&quot;, &quot;DOWN_ARROW&quot;, &quot;&quot;),
            (&quot;RIGHT_ARROW&quot;, &quot;RIGHT_ARROW&quot;, &quot;&quot;),
            (&quot;UP_ARROW&quot;, &quot;UP_ARROW&quot;, &quot;&quot;),
            (&quot;NUMPAD_1&quot;, &quot;NUMPAD_1&quot;, &quot;&quot;),
            (&quot;NUMPAD_2&quot;, &quot;NUMPAD_2&quot;, &quot;&quot;),
            (&quot;NUMPAD_3&quot;, &quot;NUMPAD_3&quot;, &quot;&quot;),
            (&quot;NUMPAD_4&quot;, &quot;NUMPAD_4&quot;, &quot;&quot;),
            (&quot;NUMPAD_5&quot;, &quot;NUMPAD_5&quot;, &quot;&quot;),
            (&quot;NUMPAD_6&quot;, &quot;NUMPAD_6&quot;, &quot;&quot;),
            (&quot;NUMPAD_7&quot;, &quot;NUMPAD_7&quot;, &quot;&quot;),
            (&quot;NUMPAD_8&quot;, &quot;NUMPAD_8&quot;, &quot;&quot;),
            (&quot;NUMPAD_9&quot;, &quot;NUMPAD_9&quot;, &quot;&quot;),
            (&quot;NUMPAD_0&quot;, &quot;NUMPAD_0&quot;, &quot;&quot;),
            (&quot;NUMPAD_PERIOD&quot;, &quot;NUMPAD_PERIOD&quot;, &quot;&quot;),
            (&quot;NUMPAD_SLASH&quot;, &quot;NUMPAD_SLASH&quot;, &quot;&quot;),
            (&quot;NUMPAD_ASTERIX&quot;, &quot;NUMPAD_ASTERIX&quot;, &quot;&quot;),
            (&quot;NUMPAD_MINUS&quot;, &quot;NUMPAD_MINUS&quot;, &quot;&quot;),
            (&quot;NUMPAD_ENTER&quot;, &quot;NUMPAD_ENTER&quot;, &quot;&quot;),
            (&quot;NUMPAD_PLUS&quot;, &quot;NUMPAD_PLUS&quot;, &quot;&quot;),
            (&quot;F1&quot;, &quot;F1&quot;, &quot;&quot;),
            (&quot;F2&quot;, &quot;F2&quot;, &quot;&quot;),
            (&quot;F3&quot;, &quot;F3&quot;, &quot;&quot;),
            (&quot;F4&quot;, &quot;F4&quot;, &quot;&quot;),
            (&quot;F5&quot;, &quot;F5&quot;, &quot;&quot;),
            (&quot;F6&quot;, &quot;F6&quot;, &quot;&quot;),
            (&quot;F7&quot;, &quot;F7&quot;, &quot;&quot;),
            (&quot;F8&quot;, &quot;F8&quot;, &quot;&quot;),
            (&quot;F9&quot;, &quot;F9&quot;, &quot;&quot;),
            (&quot;F10&quot;, &quot;F10&quot;, &quot;&quot;),
            (&quot;F11&quot;, &quot;F11&quot;, &quot;&quot;),
            (&quot;F12&quot;, &quot;F12&quot;, &quot;&quot;),
            (&quot;F13&quot;, &quot;F13&quot;, &quot;&quot;),
            (&quot;F14&quot;, &quot;F14&quot;, &quot;&quot;),
            (&quot;F15&quot;, &quot;F15&quot;, &quot;&quot;),
            (&quot;F16&quot;, &quot;F16&quot;, &quot;&quot;),
            (&quot;F17&quot;, &quot;F17&quot;, &quot;&quot;),
            (&quot;F18&quot;, &quot;F18&quot;, &quot;&quot;),
            (&quot;F19&quot;, &quot;F19&quot;, &quot;&quot;),
            (&quot;PAUSE&quot;, &quot;PAUSE&quot;, &quot;&quot;),
            (&quot;INSERT&quot;, &quot;INSERT&quot;, &quot;&quot;),
            (&quot;HOME&quot;, &quot;HOME&quot;, &quot;&quot;),
            (&quot;PAGE_UP&quot;, &quot;PAGE_UP&quot;, &quot;&quot;),
            (&quot;PAGE_DOWN&quot;, &quot;PAGE_DOWN&quot;, &quot;&quot;),
            (&quot;END&quot;, &quot;END&quot;, &quot;&quot;),
            (&quot;MEDIA_PLAY&quot;, &quot;MEDIA_PLAY&quot;, &quot;&quot;),
            (&quot;MEDIA_STOP&quot;, &quot;MEDIA_STOP&quot;, &quot;&quot;),
            (&quot;MEDIA_FIRST&quot;, &quot;MEDIA_FIRST&quot;, &quot;&quot;),
            (&quot;MEDIA_LAST&quot;, &quot;MEDIA_LAST&quot;, &quot;&quot;),
            (&quot;TEXTINPUT&quot;, &quot;TEXTINPUT&quot;, &quot;&quot;),
            (&quot;WINDOW_DEACTIVATE&quot;, &quot;WINDOW_DEACTIVATE&quot;, &quot;&quot;),
            (&quot;TIMER&quot;, &quot;TIMER&quot;, &quot;&quot;),
            (&quot;TIMER0&quot;, &quot;TIMER0&quot;, &quot;&quot;),
            (&quot;TIMER1&quot;, &quot;TIMER1&quot;, &quot;&quot;),
            (&quot;TIMER2&quot;, &quot;TIMER2&quot;, &quot;&quot;),
            (&quot;TIMER_JOBS&quot;, &quot;TIMER_JOBS&quot;, &quot;&quot;),
            (&quot;TIMER_AUTOSAVE&quot;, &quot;TIMER_AUTOSAVE&quot;, &quot;&quot;),
            (&quot;TIMER_REPORT&quot;, &quot;TIMER_REPORT&quot;, &quot;&quot;),
            (&quot;TIMERREGION&quot;, &quot;TIMERREGION&quot;, &quot;&quot;),
            (&quot;NDOF_MOTION&quot;, &quot;NDOF_MOTION&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_MENU&quot;, &quot;NDOF_BUTTON_MENU&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_FIT&quot;, &quot;NDOF_BUTTON_FIT&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_TOP&quot;, &quot;NDOF_BUTTON_TOP&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_BOTTOM&quot;, &quot;NDOF_BUTTON_BOTTOM&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_LEFT&quot;, &quot;NDOF_BUTTON_LEFT&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_RIGHT&quot;, &quot;NDOF_BUTTON_RIGHT&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_FRONT&quot;, &quot;NDOF_BUTTON_FRONT&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_BACK&quot;, &quot;NDOF_BUTTON_BACK&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_ISO1&quot;, &quot;NDOF_BUTTON_ISO1&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_ISO2&quot;, &quot;NDOF_BUTTON_ISO2&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_ROLL_CW&quot;, &quot;NDOF_BUTTON_ROLL_CW&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_ROLL_CCW&quot;, &quot;NDOF_BUTTON_ROLL_CCW&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_SPIN_CW&quot;, &quot;NDOF_BUTTON_SPIN_CW&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_SPIN_CCW&quot;, &quot;NDOF_BUTTON_SPIN_CCW&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_TILT_CW&quot;, &quot;NDOF_BUTTON_TILT_CW&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_TILT_CCW&quot;, &quot;NDOF_BUTTON_TILT_CCW&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_ROTATE&quot;, &quot;NDOF_BUTTON_ROTATE&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_PANZOOM&quot;, &quot;NDOF_BUTTON_PANZOOM&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_DOMINANT&quot;, &quot;NDOF_BUTTON_DOMINANT&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_PLUS&quot;, &quot;NDOF_BUTTON_PLUS&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_MINUS&quot;, &quot;NDOF_BUTTON_MINUS&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_ESC&quot;, &quot;NDOF_BUTTON_ESC&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_ALT&quot;, &quot;NDOF_BUTTON_ALT&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_SHIFT&quot;, &quot;NDOF_BUTTON_SHIFT&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_CTRL&quot;, &quot;NDOF_BUTTON_CTRL&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_1&quot;, &quot;NDOF_BUTTON_1&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_2&quot;, &quot;NDOF_BUTTON_2&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_3&quot;, &quot;NDOF_BUTTON_3&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_4&quot;, &quot;NDOF_BUTTON_4&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_5&quot;, &quot;NDOF_BUTTON_5&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_6&quot;, &quot;NDOF_BUTTON_6&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_7&quot;, &quot;NDOF_BUTTON_7&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_8&quot;, &quot;NDOF_BUTTON_8&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_9&quot;, &quot;NDOF_BUTTON_9&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_10&quot;, &quot;NDOF_BUTTON_10&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_A&quot;, &quot;NDOF_BUTTON_A&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_B&quot;, &quot;NDOF_BUTTON_B&quot;, &quot;&quot;),
            (&quot;NDOF_BUTTON_C&quot;, &quot;NDOF_BUTTON_C&quot;, &quot;&quot;)
        ),
        name=&quot;Quick Type&quot;,
        description=&quot;Enter key code in find text&quot;,
        update=update_data
    )


class IsKeyFreeRunExportKeys(Operator):
    bl_idname = &quot;iskeyfree.run_export_keys&quot;
    bl_label = &quot;List all Shortcuts&quot;
    bl_description = (&quot;List all shortcuts with their function in a text block\n&quot;
                      &quot;The newly generated list will be made active in the Text Editor\n&quot;
                      &quot;To access the previous ones, select them from the Header dropdown&quot;)

    def all_shortcuts_name(self, context):
        new_name, def_name, ext = &quot;&quot;, &quot;All_Shortcuts&quot;, &quot;.txt&quot;
        suffix = 1
        try:
            # first slap a simple linear count + 1 for numeric suffix, if it fails
            # harvest for the rightmost numbers and append the max value
            list_txt = []
            data_txt = bpy.data.texts
            list_txt = [txt.name for txt in data_txt if txt.name.startswith(&quot;All_Shortcuts&quot;)]
            new_name = &quot;{}_{}{}&quot;.format(def_name, len(list_txt) + 1, ext)

            if new_name in list_txt:
                from re import findall
                test_num = [findall(&quot;\d+&quot;, words) for words in list_txt]
                suffix += max([int(l[-1]) for l in test_num])
                new_name = &quot;{}_{}{}&quot;.format(def_name, suffix, ext)
            return new_name
        except:
            return None

    def execute(self, context):
        wm = bpy.context.window_manager
        scene = context.scene.is_keyfree
        from collections import defaultdict
        mykeys = defaultdict(list)
        file_name = self.all_shortcuts_name(context) or &quot;All_Shortcut.txt&quot;
        start_note = &quot;# Note: Some of the shortcuts entries don't have a name. Mostly Modal stuff\n&quot;
        col_width, col_shortcuts = 2, 2

        for ctx_type, keyboardmap in wm.keyconfigs.user.keymaps.items():
            for myitem in keyboardmap.keymap_items:

                if scene.report_params:
                    desc = myitem.idname if myitem.idname else &quot;Not Available&quot;
                    description = &quot;{}(&quot;.format(desc)
                    if myitem.properties:
                        if len(myitem.properties.items()):
                            for prop in myitem.properties.items():
                                description += &quot;{}={},&quot;.format(prop[0],prop[1])
                            description = description[:-1]
                    description += &quot;)&quot;
                else:
                    desc = myitem.name if myitem.name else &quot;No Name&quot;
                    description = &quot;{}&quot;.format(desc)

                padding = len(description)
                col_width = padding + 2 if padding &gt; col_width else col_width

                short_type = myitem.type if myitem.type else &quot;UNKNOWN&quot;
                is_ctrl = &quot; Ctrl&quot; if myitem.ctrl is True else &quot;&quot;
                is_alt = &quot; Alt&quot; if myitem.alt is True else &quot;&quot;
                is_shift = &quot; Shift&quot; if myitem.shift is True else &quot;&quot;
                is_oskey = &quot; OsKey&quot; if myitem.oskey is True else &quot;&quot;
                if scene.report_keyname:
                    short_cuts = &quot;{}&quot;.format(myitem.to_string())
                else:
                    short_cuts = &quot;{}{}{}{}{}&quot;.format(short_type, is_ctrl, is_alt, is_shift, is_oskey)

                t = (
                    description,
                    short_cuts,
                )
                mykeys[ctx_type].append(t)
                padding_s = len(short_cuts) + 2
                col_shortcuts = padding_s if padding_s &gt; col_shortcuts else col_shortcuts

        max_line = col_shortcuts + col_width + 4
        textblock = bpy.data.texts.new(file_name)
        total = sum([len(mykeys[ctxs]) for ctxs in mykeys])
        textblock.write('# %d Total Shortcuts\n\n' % total)
        textblock.write(start_note)

        for ctx in mykeys:
            textblock.write(&quot;\n[%s]\nEntries: %s\n\n&quot; % (ctx, len(mykeys[ctx])))
            line_k = sorted(mykeys[ctx])
            for keys in line_k:
                add_ticks = &quot;-&quot; * (max_line - (len(keys[0]) + len(keys[1])))
                entries = &quot;{ticks} {entry}&quot;.format(ticks=add_ticks, entry=keys[1])
                textblock.write(&quot;{name} {entry}\n&quot;.format(name=keys[0], entry=entries))

            textblock.write(&quot;\n\n&quot;)

        # try to set the created text block to active
        if context.area.type in {&quot;TEXT_EDITOR&quot;}:
            bpy.context.space_data.text = bpy.data.texts[file_name]

        self.report({'INFO'}, &quot;See %s textblock&quot; % file_name)

        return {&quot;FINISHED&quot;}


# -----------------------------------------------------
# Registration
# ------------------------------------------------------
classes = (
    IskeyFreeProperties,
    RunActionCheck,
    UIControlPanel,
    IsKeyFreeRunExportKeys,
)


def register():
    for cls in classes:
        bpy.utils.register_class(cls)
    bpy.types.Scene.is_keyfree = PointerProperty(type=IskeyFreeProperties)


def unregister():
    for cls in classes:
        bpy.utils.unregister_class(cls)
    del bpy.types.Scene.is_keyfree