title: Detect Shift key is pressed without using events in Windows Forms?
body: <p>I need to be able to detect that the shift key is being held, but I don't want to use events or global variables to determine that. Is there an API in C# that lets you ask what keys are currently pressed instead of using the event?</p>