In this video we have shown and explain the Movement of Object When Arrow Keys are Pressed in pygame. following keys are using in this program
K_UP: It is used to perform an action when the up arrow is pressed on the keyboard.
K_DOWN: It is used to perform an action when the down arrow is pressed on the keyboard.
K_LEFT: It is used to perform an action when the left arrow is pressed on the keyboard.
K_RIGHT: It is used to perform an action when the right arrow is pressed on the keyboard.