title: Pygame key pressed down
body: <p>in the following loop in <strong>pygame</strong>
  I made the following loop to check for key presses.
  How do I use pygame to check if the key is still being pressed &amp; how often the action will be repeated? For example, if I want that for every second the down key is pressed - it'll repeat the <code>print("something")</code> command a variable amount of times.</p>
  
  <pre><code>for event in pygame.event.get():
          if event.type == pygame.QUIT:
              game_running = False
          if event.type == pygame.KEYDOWN:
              if event.key == pygame.K_DOWN:
                  print("something")
  </code></pre>