title: KeyTypedEvent KeyEvent's KeyCode is always 0?
body: <p>I have a Java Swing application in the NetBeans IDE.</p>
  
  <p>I made a form and attached a KeyListener to my various controls as such:</p>
  
  <pre><code>    jButton1.addKeyListener(new java.awt.event.KeyAdapter() {
          public void keyTyped(java.awt.event.KeyEvent evt) {
              keyTypedEvent(evt);
          }
      });
  </code></pre>
  
  <p>and <code>keyTypedEvent</code> is defined as such:</p>
  
  <pre><code>private void keyTypedEvent(java.awt.event.KeyEvent evt) 
  {                               
  System.out.println(evt);
  appendDisplay(String.valueOf(evt.getKeyChar()));
  } 
  </code></pre>
  
  <p>I added a <code>println</code> to the <code>evt</code> to see what happens and to verify that my keylistener does work.
  When I build and run my application, I realized that the output always seems to have a <code>keycode = 0</code></p>
  
  <p>To verify this, I had changed my println to be <code>evt.getKeyCode()</code> and it is always returning 0.</p>
  
  <p>I could be completely misinterpreting what KeyCode does, but I thought that it would coorespond with the values in Oracle's documentation here:</p>
  
  <p><a href="http://docs.oracle.com/javase/7/docs/api/constant-values.html#java.awt.event.KeyEvent.VK_ESCAPE">http://docs.oracle.com/javase/7/docs/api/constant-values.html#java.awt.event.KeyEvent.VK_ESCAPE</a></p>
  
  <p>For instance, VK_ESCAPE has a value of 27.</p>