Is there any way to proceed into a method if the key that is being pressed does not result in any typing. i.e. the shift key, control key etc without having to specify all of them. Ideally, to detect combinations of keys, for example Control+V = Paste.
Code similar to below is what I am working with;
if( (e.KeyData == Keys.Left)
|| (e.KeyData == Keys.Right)
|| (e.KeyData == Keys.Home)
|| (e.KeyData == Keys.End)
|| (e.KeyData == Keys.Up)
|| (e.KeyData == Keys.Down)
|| (e.KeyData == Keys.ShiftKey)
|| (e.KeyData == Keys.ControlKey)
) return;
But don't want to add every single combination of keypresses.
Any ideas?