The keyOffset is a temporary, per-chord transposition that shifts only the root of the current chord, leaving the overall key context unchanged.
Values below 20: shift down (e.g., 19 = -1 semitone)
Values above 20: shift up (e.g., 21 = +1 semitone)
Music theory is just that — a theory. No set rules really exist set in stone.