Wiktionary
keep one's wits about one
vb. (alternative form of have one's wits about one English)