I was writing a pygame program and kinda got stuck because I want to check if a specific key, for example K_b was pressed and count how many times, but I cannot figure out a way to do that and only can count how many times keys were pressed in general and that's not what my goal is. To make it more clear my game is hangman with keyboard keys so if a specific key is pressed more than once the game should not go to the next stage of the hangman because in the real game if you guess a wrong letter you cannot guess it again and just infinitely continue on stages. I hope it was clear enough to understand if not I can try to explain even further with more details
question from:https://stackoverflow.com/questions/65894150/check-number-of-times-specific-key-is-pressed-pygame