How to do the run to stop state in the player controller

I have a question, how to do the run to stop state, thats it