Python Forum

Full Version: How to detect key presses
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do you detect key events?
you need to elaborate.
key events where? in GUI ? if so which one?
in main program?
on Flask app?
by your user name, I'm guessing pygame is that correct?
Actually, key events in file and not PyGame.
(Mar-14-2020, 09:47 AM)BlinkyGamer99 Wrote: [ -> ]Actually, key events in file and not PyGame.

Key events are by definition something that happens on your keyboard, at the time they are pressed.

What exactly are you hoping to do?