have one's wits about one

[have one's wits about one] {v. phr.} To be alert; remain calm; notpanic.

Sam was the only one who kept his wits about him when thefloodwaters of the Mississippi broke into our yard.