I want to make a menu point where I can change the hotkeys and also show which are used, but when I put them into a variable the output is in numbers. I had the idee to set the varibles when pressing the key as following:
if event.key == pygame.K_d:
varibleright = d
This I would have to do for all the keys is there a better way or should I just do it for all the keys?