Diacetyl, which gives a buttery or butterscotch flavor, can be controlled by boiling the brew at high temperatures for appropriate durations, ensuring proper oxygenation during fermentation, increasing temperatures as fermentation nears its end, and allowing the beer to sit on the yeast for some time before removal.