While most kegs will have a decent shelf life, they can go bad. Especially once they have been tapped. It is really easy to tell if a keg has gone bad as the beer will produce a really sour taste. Simply put, you will be able to tell if a keg is bad if the alcohol coming out of it tastes like it has turned.