I know how to obtain which modifier key was pressed in C# but I don’t know how I can actually check if any modifier key was pressed. I need to check it in KeyUp event, is it possible any other way than doing something like if(e.KeyCode != Keys.Control && e.KeyCode != Keys.Alt && ...) ? Thanks.
I know how to obtain which modifier key was pressed in C# but I
Share
will help you detect whether a modifier key (e.g. ctrl or shift) was pressed.
Check the Post below for reference:
How to detect the currently pressed key?