What kind of "controlls" you have to manage your animations?
i'm guessing here but probably when you press enter animation plays only for that time and soon when you release enter, anim goes back to idle.
Try do something like this
if (some global value) = 0 - play animation1
if (some global value) = 1 - play animation2
and then refer to that variable, when you want to change animation state