How to use the keyboard to perform an activity if a key is pressed? In my searches, I could not find any examples in this template:
import keyboard
b = 0
if keyboard.press('b'): #sei que o certo não é utilizar o press, mas, o que boto no lugar?
b = 1