To maintain one's composure / To keep it together
Describes staying calm, dignified, and in control of oneself, especially in a difficult or stressful situation.
Despite the bad news, she maintained her composure.
It's difficult to keep it together in those situations.
—How did he react? —He maintained his composure as always.