Hey there,
As something of a work-around, you could write a script that's triggered by a hotkey or an abbreviation and then waits for specified keypresses to take specified actions.The AutoKey API offers a way to wait for a keypress with the
keyboard.wait_for_keypress() method.
This example uses an infinite loop that will only display the specified dialog if the Escape key is pressed:
keyboard.wait_for_keypress("<escape>")
dialog.info_dialog(message="The Escape key was pressed.")
This example uses a ten-second time-out. It will display the specified dialog regardless of whether the Escape key is pressed or not. If the Escape key is pressed within ten seconds, the dialog will be displayed immediately. If not, then the dialog will be displayed after ten seconds:
keyboard.wait_for_keypress("<escape>", timeOut=10.0)
dialog.info_dialog(message="The Escape key was pressed.")