Tie anim sequence movement to player input?

Hey, I have a quick question. Prefacing all of this I am new to animations and rigs in UE5.6, so please be patient with me.

I have an animation sequence (a crawl) linked to the player BP. I want to link the crawling animation to player input. The player presses W, the animation cycles forward, starting the looping sequence animation. When the player lets go of W, the animation slows to a stop. Is this possible? If not, what are some workarounds I should look into?

Let me know if any other info is needed.

Thank you for your time!