Stopping key groups from overwriting previously declared keys