This is yet another Java implementation of
the classical Rubik's Cube. You should be able to figure out how it works.
Twist or rotate by pointing and dragging in "natural"
Press s to scramble and r
to restore (while positioning the mouse cursor somewhere in the applet