Stop character in an endless runner

Hello everyone, I am creating an endless runner for Android devices.
I would stop the race of the character, when I press and hold a button and when I release the button the character starts running again.
how can i do this?


Add a branch between the tick and movement input, then add your input and set the bool value of that branch dependent on if your input is pressed or released.

Ask if you need an example,

Here is a simple way to do it :

Thanks a lot!