Add nested key groups