title: How do I handle simultaneous key presses in Java?
body: <p>How do I handle simultaneous key presses in Java?</p>
  
  <p>I'm trying to write a game and need to handle multiple keys presses at once.</p>
  
  <p>When I'm holding a key (let's say to move forward) and then I hold another key (for example, to turn left), the new key is detected but the old pressed key isn't being detected anymore.</p>