title: How to stop repeated keyPressed() / keyReleased() events in Swing
body: <p>So the problem that I am having appears to be a bug that occurs only on Linux. I'm trying to have my swing app record when a key is pressed down, then to detect when that key is released. Now that shouldn't be in issue because <a href="http://java.sun.com/j2se/1.5.0/docs/api/java/awt/event/KeyListener.html" rel="noreferrer" title="KeyListener">KeyListener</a> is supposed to handle this for me.</p>
  
  <p>The problem is that when I hold the key down I get lots of repeated keyPressed()/keyReleased() events instead of just the single keypressed(). Does anyone have a solution or workaround for knowing when a key is really released on linux?</p>
  
  <p>Thank you.</p>