void Surface_KeyDown(object sender, KeyEventArgs e) { if (inputComponent != null) { KeyboardEventArgs args; inputComponent.KeyDown(args = new KeyboardEventArgs(ConvertKeys(e.Key))); e.Handled = args.Handled; } }