When I create a tool , it's like a switch button. click to enter a mode, click again to exit the mode. I want create a tool like `Flip Button` , click to run an action How to do that ? thanks