I am currently working on an application which requires different behaviour based on whether the user presses the right or left shift key (RShiftKey, LShiftKey), however when either of these keys is pressed I only see ShiftKey | Shift.
Is there something wrong with my keyboard? (laptop) do I need a new keyboard driver/keyboard in order to send the different key commands maybe…
This is a pretty massive problem at the moment, as there is no way of testing that the code works (apart from unit tests). Anyone had any experience of the different shift/alt/ctrl keys?
I don’t know if this post will help you or not, but it looks like you may have to mess with InteropServices and Diagnostics:
MSDN Forum: How to send Left/Right shift key
Edit: I finally figured out how to make GetAsyncKeyState() work, as adrianbanks revealed.