This version adds functionality for the Space key, which will align the cube's current orientation to that of the camera. It takes face which faces the most forward and makes it face forward, then takes the face which faces the most upwards and makes it face upwards. In addition, rotation now happens in rational multiples of pi, which means that the cube stays aligned when rotating horizontally or vertically.