To remain calm, reasonable, level-headed, especially in a situation likely to cause distress.
To lose one's temper; to throw a tantrum.