Use the arrow keys to rotate the cube. Feel free to remix or use the code for another project, but please credit both me and @Eriquito360 for the code, and leave a link to your project in the comments. You'll have to figure out how to use the blocks yourself.
Base script located here: http://scratch.mit.edu/projects/20026931/ This is something I've wanted to do for ages, but I didn't understand the trigonometry functions; I have to learn it at school :-( Now I have the trig maths already done for me, I can work on the script properly.