title: Pygame key getting pressed
body: <p>What is the idiomatic way of saying to pygame to run something as long as a key is being pressed? With <code>pygame.key.get_pressed()[pygame.K_p]==True</code> or <code>pygame.mouse.get_pressed()==(1,0,0)</code> it seems to react only as the key or the button get strocken. Should one use a <code>while</code> loop for example?</p>
  
  <p>I run the code below and i get print in the shell only upon strocking the key/button:</p>
  
  <pre><code>def main():
  done = True
  while done:
      for i in pygame.event.get():
          if pygame.key.get_pressed()[pygame.K_a] == 1:
              print "Key a is being pressed..."
          elif i.type == KEYDOWN and i.key == pygame.K_q:
              done = 0
      pygame.display.update()
  pygame.quit()
  main()
  </code></pre>