private void Border_KeyDown(object sender, KeyEventArgs e) { switch (e.Key) { case Key.C: if (e.KeyboardDevice.Modifiers == ModifierKeys.Control) { MessageContainer.CopyToClipboard(); } break; case Key.A: if (e.KeyboardDevice.Modifiers == ModifierKeys.Control) { MessageContainer.SelectAll(); } break; } }