title: How to make KeyboardFocusManager in Java listen to a combination of KeyEvenets?
body: <p>How to make <code>KeyboardFocusManager</code> in Java listen to a combination of <code>KeyEvents</code>?</p>
  
  <p>I want to make my program listen to <kbd>ctrl</kbd>+<kbd>z</kbd>. How should I do it?</p>
  
  <p>I tried </p>
  
  <pre><code>(e.getkeyevent() == "z") {
     if (e.isControlDown()) {
      ....
     }
  }
  </code></pre>
  
  <p>but it doesn't work.</p>