KeyDown with Click Event
<p>I have run into a bit of a snag for a form I am working on. I have a button that prompts the user with yes/no boxes and I want to add functionality that will allow them to bypass the prompt if they hold down the shift key when clicking the button. Here's what I have tried within the Click event <code>scriptblock</code> so far but nothing seems to be working:</p>

<pre><code>    if($_.KeyCode -eq 'Shift'){
        #Stuff
    }

    if($_.Shift){
        #Stuff
    }
</code></pre>

<p>Any ideas what I can do to get this working?</p>