private void HandleKeyDown(object sender, KeyEventArgs e)
{
var TextBox = (sender as TextBox);
var Key = e.KeyCode;
if ((Key & Keys.KeyCode) != 0)
{
if (Key == Keys.ShiftKey) return;
if (Key == Keys.ControlKey) return;
if (Key == Keys.Alt) return;
TextBox.Text = Key.ToString();
var ConfigField = GetCachedControllerConfigField(TextBox.Name);
if (ConfigField != null) ConfigField.SetValue(CurrentControllerConfig, TextBox.Text);
e.SuppressKeyPress = true;
(this.AcceptButton as Button).Focus();
}
//Focus();
//KeyInterop.KeyFromVirtualKey
}