title: Why does KeyStroke.getKeyStroke('h').getKeyCode(); return 0?
body: <p>Why does <code>KeyStroke.getKeyStroke('h').getKeyCode();</code> return 0?</p>
  
  <p>For example:</p>
  
  <pre><code>import javax.swing.KeyStroke;
  
  public class KeyStrokeTest {
    public static void main(String[] args) {
      KeyStroke keyStroke = KeyStroke.getKeyStroke('h');
      System.out.println(keyStroke.getKeyCode());
    }
  }
  </code></pre>
  
  <p>Outputs:</p>
  
  <pre><code>0
  </code></pre>
  
  <p>How can I fix it?</p>