def remap_key(src, dst):
def handler(event):<EOL><INDENT>if event.event_type == KEY_DOWN:<EOL><INDENT>press(dst)<EOL><DEDENT>else:<EOL><INDENT>release(dst)<EOL><DEDENT>return False<EOL><DEDENT>return hook_key(src, handler, suppress=True)<EOL>
Whenever the key `src` is pressed or released, regardless of modifiers,
press or release the hotkey `dst` instead.