I'm using pynput and I would like to be able to hold keys down, specifically wasd but when I try and run this code it only presses the key and doesn't hold it for 2 seconds. If anyone knows what I'm doing wrong let me know. Thanks
import timekeyboard = Controller()time.sleep(2)
keyboard.press('w')
time.sleep(2)
keyboard.release('w')