keeping (n.)
"care, custody, charge," c. 1300, verbal noun from keep (v.). Phrase in keeping with "in harmony or agreement with" (1806) is from use of keeping in the jargon of painting to refer to a pleasing harmony of the elements of a picture (1715).