This really depends on person-to-person but what I usually do when I'm in a very bad mood is just grab my phone, earphones and listen to pop rock music (because I love pop rock)
Immersing yourself in an activity shifts your attention and thinking into that activity making you temporarily forget whatever caused your mood. It allows you to cool off your head and think rationally.