It was told Saul that David was come to Keilah. Saul said, God has delivered him into my hand; for he is shut in, by entering into a town that has gates and bars.
So Saul, I mean David had been surrounded by Saul's men. Looks like he's had it.