private void FormOnKeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { CloseForm(); } }