I\'m trying to make a game and want the user to change their input keys, e.g. they press the A key and that changes the MoveUp variable to the A key so that whe
MoveUp
When you get event KEYDOWN then you have pressed key in event.key
KEYDOWN
event.key
while not Fin: for event in pygame.event.get(): if event.type == pygame.KEYDOWN MoveUp = event.key
BTW: Every event may have different fields. You can see all on yellow list in documentation: event