You can prime kegs or force carb them. To prime, use about 60% of the sugar you'd use for priming a batch in bottles. View the keg as one big 'bottle'. The headspace is much smaller than that you'd get in 40ish bottles combined, which is why less sugar is required, apparently. It's important to lube the keg seals with keg lube or K-Y jelly. After purging air from the keg's headspace a few times, using about 5psi, remove the gas disconnect and ramp up the pressure to 25-30psi. Then connect it back on the gas-in post. You should hear it pressurising and sealing. (Always make sure the gas is on before connecting to the keg. You don't want beer in your regulator. You can get a gas disconnect check valve for about a tenner.) Then remove the gas disconnect and leave it at room temperature for 2-3 weeks. You can monitor the pressure using a gauge connected to a gas disconnect. To force carb, purge and seal as above. Then set the regulator to the required psi, which depends on the temperature of the beer (cooler is better) and vols of CO2 you want. If you leave the CO2 attached, triple check for any leaks. Without a carb lid and carb stone, it's going to take at least 5 days to carbonate properly. You can't shake the keg to get the beer carbed properly in a short time. Both priming and slow force carbing should get your beer carbed properly. I prime most of my kegs these days and force carb when I'm in a hurry.