Whichever of the keyframes either side of the target is nearer to it, the one before on a tie or when none follows.