What’s the law around taking peoples car keys away?

We had a girl last night that had wayyy too many shots, I only made her 1 drink but other customers were buying shots and giving them to her and she ended up getting really sloppy and volatile. Like when you have to soft parent them so they don’t switch up on you and start yelling type of thing. She remained nice mostly, but only because I was really careful with my words because I could see that glimmer of anger starting to come out. She kept asking for more and more starfuckers and I was just pouring redbull shots lol. She refused to drink water, soda, or anything that wasn’t “alcohol”

But we ended up taking her keys bc she kept insisting that she could drive, well, the security did. And then we attempted to call her an Uber after finally getting her to give us her address, but she refused to get in the Uber. We finally got ahold of a friend of hers who picked her up at 5 am. But are we allowed to do this if a customer is extremely intoxicated and insists on driving?