Detect if Shift is pressed
<p>I have a situation on a phone field. On this field, the user can type the following phone numbers:</p>

<p>(00)9999 9999 <br>
(00)99999 9999 (in São Paulo Brasil) <br>
and 
1234*12 (Nextel Numbers) </p>

<p>On the field phone I configure an onkeydown event that call this javascript function:</p>

<pre><code>function validateKeyDownPhone(event) {

    var c = event.keyCode
        keychar=String.fromCharCode(c)
        valid = true

    /**
     * Excluding enter, backspace, etc. 
     */
    if (c &gt; 46 ) {          
        if (keychar != null) {  
            var re = new RegExp("^[0-9\*#\(\) ]+$")
            matched = keychar.match(re)
            valid = matched != null &amp;&amp; matched.length &gt; 0
        }
    }
    event.returnValue = valid
}
</code></pre>

<p>It works fine, but when the I press SHIFT + 5 results in %, for example. </p>

<p>How can I identify if the shift key was pressed?  </p>
