title: LibGDX - isKeyPressed() do not count just one
body: <p>I'm trying to do a game. When you press "A" my character was supposed to jump ONE square forward, but he is jumping like 7 squares each time I press the "A" key. Someone knows how to limit it to 1? I know why it is happening, but I didn't find any ways to do that until now.</p>
  
  <p>My "Player" class code, that is my Character class:</p>
  
  <pre><code>ArrayList&lt;Square&gt; squareList = new ArrayList&lt;Square&gt;();
  int count = 0;
  Vector2 position = new Vector2(50,50);
  if(Gdx.input.isKeyPressed(Keys.A))
  {
      j = j + 1;
      position.x = squareList.get(i).getPosition().x;
      position.y = squareList.get(i).getPosition().y;
      i++;
  
  }
  </code></pre>