title: Key combination of characters (non-Ctrl or Alt) in Java
body: <p>I'm doing a project that needs to detect if a certain key combination has been pressed. Any keys like <kbd>Ctrl</kbd>, <kbd>Alt</kbd>, <kbd>A</kbd>-<kbd>Z</kbd> and <kbd>0</kbd>-<kbd>9</kbd> can be used as key combination.</p>
  
  <p>I've searched some codes using <code>KeyStroke.getKeyStroke</code> but it seems like it does not allow combinations without a <kbd>Ctrl</kbd>, <kbd>Shift</kbd>, <kbd>Alt</kbd>, etc.</p>
  
  <p>My application needs to detect combinations even WITHOUT <kbd>Ctrl</kbd> or <kbd>Alt</kbd> e.g. just a combination of plain <kbd>A</kbd>+<kbd>B</kbd>+<kbd>C</kbd>. Is this can also be done with<code>KeyStroke.getKeyStroke</code>? Replies are greatly appreciated.</p>