keep it together

Intermédiaire supérieur (B2) informal

To stay calm and in control when things are difficult.

"She was devastated by the news, but somehow kept it together until after the meeting ended."