Here is how to tap a keg so you do not get any foam: Ensure that the keg has chilled long enough. Warm beer is foamy. Next, when pumping the keg, you do not want to pump too much or too little. About 10-15 seconds of slow, steady pumping is all you need.