Component continue running while pressed or selected

I have a process that I need it to run as long as the user is pressing a button. If that is not possible I am also thinking about radio button. However I need to change the icon for that.
Does anyone faced a similar use case ? Any clue here ?

Have you read our posting guide?