STEP Three – A
x_change = 0
##########################################################
## ##
## Replace this with Code from Step FOUR-B ##
## ##
##########################################################
STEP Three – B
#Movement
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_LEFT:
x_change = -5
elif event.key == pygame.K_RIGHT:
x_change = 5
if event.type == pygame.KEYUP:
if event.key == pygame.K_LEFT or event.key == pygame.K_RIGHT:
x_change = 0
x += x_change
Now run your code
You should see a screen like this and you should be able to use the arrow keys to move the car
![](https://mlshspython.files.wordpress.com/2022/05/image-4.png?w=760)