title: Pygame waiting the user to keypress a key
body: <p>I am searching a method, where the program stops and waiting for a spesific key to be pressed by the user. May I can implement this one with a while loop? I need the best algorithm, if there exist a build-in function of waiting, to avoid the loop. 
  I found several information on the <a href="http://www.pygame.org/docs/ref/key.html" rel="noreferrer">official website of pygame</a>, but nothing help.</p>
  
  <p>Here is a testing algorithms but won't work:</p>
  
  <pre><code>key = "f"
  while key != "K_f":
       key = pygame.key.get_pressed()
       if key[Keys.K_f]:
           do something...
  </code></pre>