title: pygame - Key pressed
body: <p>I am kinda stuck with a supposed to be simple code to check if the user has pressed "w" or "s".</p>
  
  <p>Below you can see my code:</p>
  
  <pre><code>import pygame
  pygame.init()
  
  while True:
      for event in pygame.event.get():
          if event.type == pygame.KEYDOWN and event.key == pygame.K_w:
              print('Forward')
          elif event.type == pygame.KEYDOWN and event.key == pygame.K_s:
              print('Backward')  
  </code></pre>
  
  <p>Am I forgetting something here?</p>
  
  <p>Thanks!</p>