title: Key press is not being recognised by python's 'pygame.key.get_pressed()' module
body: <p>I am trying to create a function where if a key is pressed, variables are changed. This will be put into a class that moves a sprite on a screen. The while loop is broken when the key is released. However, nothing happens. The while loop is running and I get no error. Does anyone know why this might be happening? I am not sure if I am using the function <code>pygame.key.get_pressed()</code> correctly.</p>
  
  <pre><code>import pygame
  from pygame.locals import *
  def move():
      for event in pygame.event.get():
              if event.type == QUIT:
                  pygame.QUIT()
                  sys.exit()
      while True:
          pressed = pygame.key.get_pressed()
          if pressed[pygame.K_UP]:
              print("something happens")
          #runs this, but when up arrow key is pressed does nothing
          if event.type == KEYUP:
              False
  
  screen = pygame.display.set_mode((512,384))
  move()          
  pygame.display.update()
  </code></pre>