Syntax for arrow Key?

Okay so I want to develop a looping animation to the right arrow key when ever pressed and held. But I also want the animation to stop and go to an idol or no animation when not held. So like a running animation on the “right arrow key”.

But I also want to know how to develop same thing for the “D” key on the keyboard.
Currently when I applied the animation it goes then stops all of a sudden here is a video of more info - YouTube

Use Input.GetAxis()