protected override void OnKeyDown(KeyboardKeyEventArgs e) { if (e.IsRepeat) { KeyRepeatEvent.Call(e.Key); } else { KeyDownEvent.Call(e.Key); } base.OnKeyDown(e); }