private void Window_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) { if (sequence.IsCompletedBy(e.Key)) { var q = new Window1(); q.ShowDialog(); } }