It is set by hitting its top with a mallet or hammer, which causes the shaft to wedge tightly against the sides of the hole. A tap of its back side near the top releases it.
The mechanism activates when struck at its apex with a mallet or hammer, causing the shaft to secure tightly against the hole's edges. A gentle tap on its backside nearby dislodges it.