I can think of two ways, I tried them both and they both work a treat, although, one is 100% more costly than the other.
One way is to distract yourself from it. I know some are not even worth trying to get over. 1 month later I’m still swearing and cursing at it. Straight flush over flopping quads? Get over that one if you can. But with most others, just blame luck on that moment and remind yourself you’ll be at the other end of the gun next time and you may get many other people to have to deal with their bad beats generated by you. Then do something else fun. Kiss your wife, tell your parents how much you actually love them because they’re the best and closest friends you’ll never have again and that now you’ve finally realised what sort of a pirck you’ve been to them all your life and mentioned they deserved to be treated a lot better and from now on they will. Doesn’t matter what you think or whether they are or not. You’ve done something good. Be proud. Or just do something good to someone. Help some people out. Be more human than everyone around you. Uplift your spirit and self belief. Good will always come to good people. At some point.
Another effective way is to take the mouse, smash it into the keyboard until they become one unit. Take that brand new unit and integrate it right into your LCD display. Now take this all in one device you’ve just created and gently but forcefully (only if you forgot to open the fridge door beforehand) aim it at the fridge. If it all worked to plan, now you’ve given a lesson or a correction and you let it cool off its nerves. Make sure you mention to it that if it ever shows you the wrong board repetitively in a short period of time, you might have to repeat the correction. Don’t be materialistic. Be tough!
Jokes aside, please, please, please, no matter how angry, upset or whatever you get DO NOT HURT other human beings or living things around you. They’ve done nothing to deserve your reactions based on your lack of ability to control yourself or play poker.
All the best! Peace and Love!