boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.74k stars 432 forks source link

Cannot hold a key #643

Open skkd113 opened 3 months ago

skkd113 commented 3 months ago

Hello there, by somehow i cannot hold a key with keyboard.press(), it just press once. Anyone know what is the issue?

keyboard.press('a') time.sleep(5) keyboard.release('a')