I'm by no means a pro, but I did this over the weekend, so I'll tell you my process.
After I siphoned off the beer in my fermenter (I only do a primary) into my keg, I was left with the trub in the bottom.
The exacts vary in the next steps, but my next beer is fermenting and not infected...