making a blender addon (in python) that has a keyboard shortcut and works in edit mode (not object mode as per example)
i found you can use the keymap word "Screen Editing" instead of "Object Mode"

object_mode_keys = wm.keyconfigs.addon.keymaps.new(name='Screen Editing', space_type='EMPTY')