Answers for "check if back is pressed python"

0

check if back is pressed python

import keyboard
while true:
    try:
        if keyboard.is_pressed('s'):
            print("stop")
        elif keyboard.is_pressed('p'):
            print("pause")
    except:
        pass
Posted by: Guest on March-30-2021

Code answers related to "check if back is pressed python"

Python Answers by Framework

Browse Popular Code Answers by Language