In your case, it's probably best to keg, chill, then gelatin. It's best to add to cold beer, not beer that's about to get cold. That said, I'm not a fan of clearing in the keg because it can get goopy. If you have the means, adding to the fermenter is ideal.