Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python break when key pressed

#pip install keyboard
import keyboard
while True:
    # Do your stuff
    if keyboard.is_pressed("q"):
        # Key was pressed
        break
Source by www.reddit.com #
 
PREVIOUS NEXT
Tagged: #python #break #key #pressed
ADD COMMENT
Topic
Name
1+4 =