Getting Pygame keyboard input and check if it's a number
问题 I am trying to get keyboard input using Pygame using this command: if event.type == pg.KEYDOWN: # ADD KEYBOARD EVENTS keys = pg.key.get_pressed() I want to check if the button pressed represents a number, I already know how to check if a string represent a number using try/except command, but, in my code keys is not a string, it is a huge tuple - and I don't know how to get it in an efficient way because every time I look in the internet on how to get keyboard input, they need to equate keys