0

I have a script that runs indefinitely in python and I want the script to listen to a specific keypress while running so that the functioning does not stop. If I use:

input("Enter a key to continue..")

It pauses the program and waits for a keypress. I do not want my script to wait just listen for a keypress and as soon as I press that specific key, the program will stop

Thanks in advance!

I have tried already tried the input method but that doesn't really work for me

Prog 14936
  • 15
  • 4

0 Answers0