The lift animation only plays one frame because every frame when _physics_process runs it sets the animation back to walk, idle, or jump. You probably want a lift state.
GDQuest has some good info on state machines, this video's old enough you wouldn't want to use the code as is but the general concept of how to structure a state machine is still relevant: