void OnMenuButtonDown() { if (inputFieldOracle.WasAnyFieldFocusedRecently()) { } else if (dynamicPopup.IsOpen() && dynamicPopup.IsCancellable()) { dynamicPopup.Cancel(); } else if (navigationControls.TryReleaseCursor()) { } else if (currentAvatar.OnEscape()) { } else if (headerMenu.Back()) { } }