title: Multiple keybindings on one key?
body: <p>I am making a piano with JFrame but I have a little problem.
  I want the key of the piano to turn green when it's pressed, and a note to play.</p>
  
  <pre><code>b.getInputMap(JButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('q'), "playD");
  b.getActionMap().put("playD", playC);      //playC refers to another Action class       
  
  b.getInputMap(JButton.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke('q'), "SetBg");
  b.getActionMap().put("SetBg", db);  //db refers to another Action class
  </code></pre>
  
  <p>However, these methods override eachother.
  Right now, only the colour changes, and the note isn't played.
  If I remove the "SetBg" method, the note does play.</p>
  
  <p>Is there any way to fix this?</p>
  
  <p>A second problem I have is that I can't seem to get it to work to know when a key is actually released again.
  I tried <code>.put(Keystroke.getKeyStroke("released q"), "DoSomething");</code>
  But that doesn't seem to do anything.</p>
  
  <p>Thanks in advance!</p>