This demo shows how to use javascript buttons or keyboard letters to make moves on the cube. To use letters to manipulate a cube, click on it and then press letters corresponding to the moves. Layers can also be turned via mouse/touch but the whole cube can only be rotated by buttons/letters on the first one (cannot be rotated via mouse/touch). On the second one, the cube can be rotated via mouse/touch but then it needs to be rotated back to the initial position (by pressing Repos button) before making moves with buttons/letters otherwise the results may not be as expected.