Is it possible to create an interaction that reacts to taking a finger off the trigger?

Basically, button’s state changes while it’s pressed down and reverts to the original state when it’s not. Tried achieving that with a long press, but it needs another trigger to return to the original state

Thanks!