Once the beer is put into the keg it needs to be gassed with C02 (which usually takes 36-48hrs), then the beer needs a couple of days to absorb that gas. It is drinkable after a few days of being gassed, however it will still be extremely ‘green’ and not ideal! 2-3 weeks after gassing would be a minimum time frame to allow for a nice beer, 6 weeks or more in the keg would improve your beer quality substantially!!