How beer leaves a keg