If the problem is what I think it is, you should use what they call a state machine. Have a private variable for that character called "State", and use it to control animations. Like this:
On button pressed
Set State to "attack"
On "attackAnimation" finished
Set State to "stand"
If State = "attack"
Set animation to "attackAnimation"
If State = "stand"
Set animation to "stand"
See what I mean? It's really handy for controlling things, especially when you have more and more animations to cycle through.