I am trying to use a simple event listener.
This is what I have so far:
import keyboard
while True:
if keyboard.is_pressed('p'):
print('You pressed P')
I get the error:
AttributeError: module 'keyboard' has no attribute 'is_pressed'
When I check the documentation, I see that is_pressed
exists.
Is there something wrong with the library or am I doing something wrong?