Animation gets cancelled when pressing the same or different key?

You should use DoOnce node to play animations once. Try to reset your DoOnce node after animation’s end, so you will be able to play it after animation finished. Place the DoOnce node right before the play animation or trigger to play it.