animations messed up

If you are sure the animator is properly set up, make a fresh script that connects a single keypress to a single animation and prove it to yourself.

If that doesn’t work, then you know the animations aren’t set up and all the code in the world won’t help.

Also, photographs of monitors are not a way to pass code around, and neither are screenshots of code.

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: Using code tags properly