I used ctrl+` to bring up the command line, and ran the code you gave me. When I press ctrl+alt+p, nothing happens, but if I do most anything else, I get output, e.g.:
command: drag_select {"event": {"button": 1, "x": 632.5, "y": 441.5}}
command: drag_select {"event": {"button": 1, "x": 632.5, "y": 441.5}}
command: drag_select {"event": {"button": 1, "x": 604.5, "y": 343.5}}
command: drag_select {"event": {"button": 1, "x": 643.5, "y": 487.5}}
command: drag_select {"event": {"button": 1, "x": 561.5, "y": 249.5}}
command: show_overlay {"overlay": "command_palette"}
I don’t know if it is helpful, but whenever I press ctrl+alt+p, the hard drive does a quick grind.