Hold one’s head up

To keep one’s dignity and pride.

The basketball players were able to hold their heads up even though they lost the tournament.