If you press UP + LEFT + SPACE then the SPACE key doesn’t appear to be pressed immediately. You’ve to release the UP or LEFT key to get the pygame.KEYDOWN
event for SPACE.
This is a known bug in pygame and doesn’t seem to be solved yet: Incorrect handling of pressed keys #235
Sadly even pygame.key.get_pressed()
doesn’t state the SPACE key in this case, so I can’t even think a workaround.