Movement

Hi, :smiley:

I am trying to make a little game however at the moment i have been trying to figure out how to make my charector when idle show movieclip 1 in its place and when the left and right arrows are being pressed show movie clip 2 and for the charector to move left or right at a speed of 5 depending on what key is being pressed.

Summary:
no keys pressed - Charector idle, movie clip 1 shown on screen
Left key pressed - charector moves left at speed of 5
Right key pressed - Charectot moves right at a speed of 5

How do i do this???