Como saber se o botão de espaço foi clicado no Python Pygame

state = pygame.key.get_pressed()
if state[pygame.K_SPACE]:
Super Sardine