have one's wits about one
have one's wits about one {v. phr.}
To be alert; remain calm; not panic.
Sam was the only one who kept his wits about him when the floodwaters of the Mississippi broke into our yard.
Categories:
Source: A Dictionary of American Idioms