How to use the Keyboard library?

Asked

Viewed 650 times

1

How do I use the Keyboard to perform an activity if a certain key is pressed? In my research, I couldn’t find any example in this mold:

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

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.