During the Seven Years' War, Keith held high command in the Prussian army. In 1756, he commanded the troops covering the investment of Pirna, and distinguished himself at Lobositz. The battle at Lobositz was a particularly difficult situation. Frederick, in what was his typical manner, dismissed Austrian capability; he sent his columns directly into a valley surrounded by Croatian sharpshooters.