title: pygame.K_RETURN and pygame.K_BACKSPACE outputting a block
body: <p>def Main_Code():</p>
  
  <pre><code>user_input = ''
  Running= True
  while Running:
          FPS.tick(60)
  
          for event in pygame.event.get():
              if event.type == pygame.QUIT:
                  Running = False
                  quit()
              elif event.type == pygame.KEYDOWN:
                  if event.type == pygame.K_BACKSPACE:
                      user_input = user_input[:-1]
                  elif event.type == pygame.K_RETURN:
                      user_input = ''
                  else:
                      user_input += event.unicode
                      print (user_input)
          Screen.blit(bg,[0,0])
          text = myfont.render(user_input, True, White)
          Screen.blit(text, (20, 20))
          pygame.display.update()
  </code></pre>
  
  <p>This is not all of my code but I am using pygame to make a falling word game.</p>
  
  <p>The user input is showing on the screen as intended but whenever I press backspace to delete the last character of a word or I press enter to clear the whole user input it returns a box almost like this [].</p>
  
  <p>But from printing the user_input I can see that the user_input is being changed correctly but the screen will still show the user input with the boxes and the text I entered before.</p>