So erkennen Sie, ob die Space -Taste in Pygame gedrückt wird
if event.key == pygame.K_SPACE:
#what ever you want to run
Thankful Termite
if event.key == pygame.K_SPACE:
#what ever you want to run
state = pygame.key.get_pressed()
if state[pygame.K_SPACE]: