matching something or suitable in a particular situation:
In keeping with tradition, everyone wore black.
not matching something or not suitable in a particular situation:
The cheerful cover of the book is out of keeping with the sad story told inside it.
being looked after or guarded by someone