title: pygame key.set_repeat not working
body: <p>I am new to pygame and I am trying to make pong in order to learn it. I am trying to make smooth controls so that holding down an arrow will work, but it is not working right now. </p>
  
  <pre><code>import sys, pygame
  pygame.init()
  size = (500, 350)
  screen = pygame.display.set_mode(size)
  x = 1
  xwid = 75
  yhei = 5
  pygame.key.set_repeat(0, 500)
  while True:
      vector = 0
      for event in pygame.event.get():
          if event.type == pygame.QUIT: sys.exit()
          if event.type == pygame.KEYDOWN:
              if event.key == pygame.K_RIGHT:
                  vector = 4
              elif event.key == pygame.K_LEFT:
                  vector = -4
      pygame.draw.rect(screen,(255,255,255),(x,size[1] - yhei,xwid,yhei),0)
      pygame.display.update()
      screen.fill((0,0,0))
      x += vector
      if x &lt;= 0:
          x = 0
      elif x &gt;= size[0] - xwid:
          x = size[0] - xwid
  </code></pre>
  
  <p>why does this not work for holding down the left or right arrows?</p>