private void OnKeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { Terminate(); } }