Use the arrow keys to rotate the cube on x and y axes. Use the z and x keys to rotate it on the z axis.