Question About Rotation

Is there a way to rotate an object around itself instantaneously. In other words, the second a key is pressed, an object will jump to a different position?

setLocalRotation
Of course this only works well if the object is centerd, if the model is offset inside it might be a bit problematic.