The menu state machine advances from the menu-intro state to the menu state only when the menu video crosses its chapter-2 marker (onChapter). Fire onChapter from the video loop as PTS crosses playlist markers. Also route the M key through the onMenu dispatcher so it returns to the menu video/title (not just drawing menu items), and debounce the key against auto-repeat.