/// <summary>Raises the <see cref="KeyChange"/> event.</summary>
 /// <param name="key">The character code of the key whose state has changed.</param>
 /// <param name="isPressed">Indicates if the key is pressed.</param>
 private void RaiseKeyChange(VncKey key, bool isPressed)
 {
     var handler = this.KeyChange;
     if (handler != null)
     {
         handler(this, new KeyEventArgs(key, isPressed));
     }
 }
 /// <summary>Initializes a new instance of the <see cref="KeyEventArgs"/> class.</summary>
 /// <param name="key">The key code of the key.</param>
 /// <param name="isPressed">Indicates whether the key is currently pressed.</param>
 public KeyEventArgs(VncKey key, bool isPressed)
 {
     this.Key = key;
     this.IsPressed = isPressed;
 }