public AddUnit() { InitializeComponent(); this.PreviewKeyDown += new KeyEventHandler(HandleEsc); UnitName.Focus(); }