With pynput we can listen for global hotkeys like this:
pynput
from pynput import keyboard def on_activate_i(): print(\'++i