private void HandleEscape() { if (KeyDown("escape") || KeyDown("F1")) { ParentWindow.isVisible = false; InputText = ""; } }