Comment détecter si le bouton d'espace est enfoncé dans Pygame
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]: