title: How to differentiate capital letters from lower ones in onkeydown event handler method
body: <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Test&lt;/title&gt;
  
  &lt;script type="text/javascript"&gt;
  
  function showChar(e) {
      if (e.keyCode != 16) {
          alert(
             "keyCode: " + e.keyCode + "\n"
            + "SHIFT key pressed: " + e.shiftKey + "\n"
          );
      }
  }
  
  &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body onkeydown="showChar(event);"&gt;
  &lt;p&gt;Press any character key, with or without holding down
   the SHIFT key.&lt;br /&gt;&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I differentiate capital <strong>A</strong> from lowercase <strong>a</strong> in onkeydown event handler method? Above algorithm fires the same keyCode value. I need to detect the capital letters when they are pressed in onkeydown.</p>
  
  <p>Note: The code contains an exception for SHIFT key. Otherwise it does not allow to type capital letters. BTW, I need to use onkeydown for my trial.</p>