title: (PyGame) How can I make the character moving when I press a key?
body: <p>I know it has been asked before but I couldn't get it to work, I'm using idle 3.6 and PyGame. </p>
  
  <p>Here is the code.(I just started I have been watching some tutorials but apart from that I'm new to PyGame)</p>
  
  <pre><code>for event in pygame.event.get():
          if event.type == pygame.QUIT:
              gameExit = True
          if event.type == pygame.KEYDOWN:
              if event.key == pygame.K_RIGHT:
                  location += 1
  </code></pre>