title: How to use KeyEvent
body: <p>I'm writing small graphics editor and I want catch event when I press Ctrl+A</p>
  
  <p>I use such code (this is test version):</p>
  
  <pre><code>@Override
  public void keyPressed(KeyEvent e) {
      System.out.println("Press");
      switch (e.getKeyCode()){
          case KeyEvent.VK_A :
              System.out.println("A");
              break;
      }
  }
  </code></pre>
  
  <p>but I don't know how to catch Ctrl+a</p>
  
  <p>I tryed something like this </p>
  
  <pre><code>    case KeyEvent.VK_CONTROL+KeyEvent.VK_A :
          System.out.println("A+CTRL");
          break;
  </code></pre>
  
  <p>but this code <code>KeyEvent.VK_CONTROL+KeyEvent.VK_A</code> returns int and maybe another key combination returns the same number</p>
  
  <p>So can someone can help me </p>