If the overlay is active and imgui has set WantCaptureKeyboard we should ignore the escape key sequences.