The kelly cock is a valve installed between the kelly and the swivel. It is used to control a backflow of fluid up the drillstring and isolate the swivel and hose from high pressure.