title: Function gets called multiple times
body: <p>So, inside the game loop function that tracks user input is called multiple times. I guess this happens because game loop goes like 40 iterations each second and if I hold down the key for a 0.5 second, function gets called 20 times. I tried to handle this with sfml events too but it didn't work <code>window.setKeyRepeatEnabled(false)</code>. How can I solve this?</p>
  <pre><code>//this gets called 20-30times
  if (sf::Keyboard::isKeyPressed(sf::Keyboard::Left))
  {
      leftPlayerPoints++;
  }
  </code></pre>