When your mind goes to a bad place, focusing on all negative things, feeling as if every event is against you. Try to name one thing you are genuinely grateful for, or happy for. Then continue working on that list.
It might prove challenging at first, yet it works.
What we perceive is often not what is happening. We need to train to make the distinction.