How do I get an object to spin properly in my animation?
More reliable way of rotating the sphere on exactly the axis and degrees you want is to select it, then press X (or Y or Z depends on what axis do you want it to rotate) then type 90 (or other number of degrees you want it to rotate). Then proceed as usual with key frames and so on.
And here is what else you can do in your particular situation.