The 3 way is a pneumatic switch that directs air from one end of the ram to the other.  When the trigger is pulled it switches air flow to the other end of the ram, which cocks the marker.