Conforming to, in harmony with, as in
The new wing is in keeping with the house's original architecture, or
His actions are not in keeping with his words. This expression uses
keeping in the sense of "harmony," as does its antonym,
out of keeping with, as in
The funeral arrangements were out of keeping with the family's wishes. [c. 1800] Also see
in key;
in line.