Pressing 7 doesn't invoke anything. After pressing 7, I tried to press p which shows keydown2 is empty.
Up until now, I've used format like below
Then, I thought using a function would make the script simpler for similar hotkeys.
Could anyone tell me what's wrong with this script?