Determine if a key is currently pressed
<p>I have a need to determine if a key is currently being pressed. I do not need an event to fire, I simply need to determine if a key is being pressed to decide a code path. I looked around and there are some great GlobalKeyHook classes however they are event based.</p>

<p>Little example, basically I need to determine if the user is holding a key down when my app starts and if so then the app does one thing, other wise it starts up as normal. Does anyone have any idea's?  I am using C#.</p>

<p>Thanks
Patrick</p>
