code: def on_stop_scene(self, event: events.StopScene, signal: Callable[[Any], None]):
          
          self.stop_scene()
          if self.current_scene is not None:
              signal(events.SceneContinued())
          else:
              signal(events.Quit())
docs: Stop a running scene. If there's a scene on the stack, it resumes.