Create a variable we'll call it "canTouchDis", and set its initial value to "stop".
Now make an on input event like on clicked, or on touched object, and then make a sub event that compares "canTouchDis" ="hammerTime", do the hammer dance.
Then all you would need to do is make an event that changed stop to hammerTime in another event.