pygame moving left and right issue
I have started making something on pygame but I have encountered an issue when moving left or right. if I quickly change from pressing the right arrow key to pressing the left one and also let go of the right one the block just stops moving. this is my code bg = "sky.jpg" ms = "ms.png" import pygame, sys from pygame.locals import * x,y = 0,0 movex,movey=0,0 pygame.init() screen=pygame.display.set_mode((664,385),0,32) background=pygame.image.load(bg).convert() mouse_c=pygame.image.load(ms).convert_alpha() m = 0 pygame.event.pump() while 1: for event in pygame.event.get(): if event.type == QUIT: