Wow that is a really bad beat. I'm sorry..:(

That should happen rarely though I think.. so continue playing the hand out and it will turn out in your favor. Wasn't sure about the play on the flop with the K coming on the turn but.. you had to be cautious like you did on the flop which was good. But with the K on the turn you should have the made hand in that spot more than another 5 on the the river happening to you. Keep your chin up.

Bad beats suck and I felt sick after reading that!