I do this often. I put 2.5 to 3 oz table sugar in the keg, then rack the beer in. Seal the lid, purge the lid a few times like normal, and store the keg somewhere warm for 2-3 weeks. It should be very close to perfect carbonation once chilled back down. Sitting on gas at serving pressure will fine tune it. That's it.