The invention is directed to a detent and a method for maintaining a valve body of a valve in a predetermined position. The valve has an outer housing and a valve body is slideably positioned in the outer housing. A raised diameter section is located on the outer periphery of the valve body. A resilient detent member is positioned around the outer periphery of the valve body. The detent member has a diameter less than the diameter of the raised diameter section. The detent member is positioned to engage the raised diameter section when the valve body is in the preselected position. The engagement of the raised diameter section by the detent member maintains the valve body in the preselected position.