The best way to keep ground coffee or whole beans fresh is to store them in the original sealed package then once opened store the coffee in a opaque airtight container away from light, heat, and moisture.