I have a program which runs in thee background and monitors my keypresses so when I click a specific pattern of keys it runs another program
Now the problem I am having is that if I press Ctrl+C the program terminates due to KeyboardInterrupt so
is there a way in which the program just ignores the KeyboardInterrupt and continues executing
Catch the exception KeyboardInterruptError and do what you need to do.
How to Manage Keyboard Interrupt Error in python pynput module