If one thing is in keeping with another, it is suitable in relation to that thing. If one thing is out of keeping with another, it is not suitable in relation to that thing.
His office was in keeping with his station and experience. [+ with]
In keeping with tradition, the Emperor and Empress did not attend the ceremony.
His own response to it seemed to be out of keeping with his earlier expressed opinions.