pygame movement code example
Example: python how to make a movement controler
if keyboard.left:
Player.x = Player.x - 2
elif keyboard.right:
Player.x = Player.x + 2
elif keyboard.up:
Player.y = Player.y - 2
elif keyboard.down:
Player.y = Player.y + 2