keep one's temper
idiomDefinition of keep one's temper
: to remain calm : to not become angry, begin shouting, etc.
He was upset but kept his temper.