Is there a way to enter superscript/subscript text?

Is there a way to enter superscript/subscript text?

I often find the need to enter super/sub script text.  e.g., when entering some numbers like 10 cubed, it would be nice to enter it as 10^3 and and have the 3 shown as superscript.