d204662415
When the Menu or Modes popover was open, pressing Escape (Android back) fired the Pause system instead of closing the popover, because both systems listened to the same key with no coordination. Fix: - Add HudPopoverOpen marker to both popover entities on spawn. - Add close_menu/modes_popover_on_escape systems in HudPlugin that despawn the popover + backdrop when Escape is pressed. - Guard toggle_pause with an open_hud_popovers query: bail if any HudPopoverOpen entity exists, preventing Pause from stacking behind the closing popover. - Init ButtonInput<KeyCode> in HudPlugin::build() so the new systems work under MinimalPlugins in tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>