public void OnKeyDown(VirtualKeyCodeEventArgs e) { if (e.Key >= Keys.D1 && e.Key <= Keys.D9) { PasteClipboardEntry(Model.Recent.OfType <ClipboardEntry>().ElementAtOrDefault(e.Key - Keys.D1)); } else if (e.Key >= Keys.F1 && e.Key <= Keys.F24) { PasteClipboardEntry(Model.Pinned.OfType <ClipboardEntry>().ElementAtOrDefault(e.Key - Keys.F1)); } else { return; } e.Handled = true; KeyboardListener.IgnoreNextReleased(e.Key); }