Keep one`s head

To stay calm when there is trouble or danger.

The president is a very good leader and is able to keep his head during an emergency.