[keep one's head] also [keep one's wits about one] {v. phr.} Tostay calm when there is trouble or danger.
When Tim heard the firealarm he kept his head and looked for the nearest exit.
Compare:COUNT TO TEN. Contrast: LOSE ONE'S HEAD.