def process_event(self, event): Scene.process_event(self, event) if event.type == pygame.KEYDOWN: self.end_scene()