I have a program where you have a object and need it to move around asteoids. But in the while loop when i press the arrow keys nothing outputs or works for that key.
gameLoop = True
while gameLoop:
for event in pygame.event.get():
if (event.type==pygame.QUIT):
gameLoop=False
if (event.type==pygame.KEYDOWN):
if (event.type==pygame.K_LEFT):
direc1 = -5