private void WindowKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Q) { Window thankYou = new ThankYou(); thankYou.Show(); Close(); } }