Someone help me with my mecanim script!!!

I have a mecanim guy set up to have different animations; walk, run, jump, walk left, walk right, run left, run right. I got him set up using speed direction and a bool for the jump. The only thing that I need is the script to make him move with w,a,s,d and run when holding shift. Can anyone provide me with one. It can be C# or javascript.

a.) If your animations contain root motion, you just need to check the “Apply Root Motion” checkbox in the Animator component.

alt text

b.) If they don’t already contain root motion, you can apply the motion via script, as explained in the manual: Unity - Manual: Tutorial: Scripting Root Motion for "in-place" humanoid animations