Knowing which space you are using when keyframing is important. Often, it’s better to Parent or ‘nest’ items so that your rotations are more controllable. In terms of World and Object space, it’s very related to Parenting. The World is the universal parent, and each object underneath has it’s own coordinate system relative to the world.