pub fn begin_pass(ctx: &Context) -> bool
Once per pass, before anything reads the keyboard: Escape and outside clicks close overlays; overlays no longer shown are closed. Returns whether Escape was used (and consumed).