public void OnKeyPress(int keyCode, bool controlKey, bool altKey, bool shiftKey)
 {
     KeyPress.InvokeAsync(new KeyEventArgs(
         (Keys)keyCode, 
         (controlKey ? ModifierKeys.Control : 0) | 
             (altKey ? ModifierKeys.Alt : 0) |
             (shiftKey ? ModifierKeys.Shift: 0)));
 }