Use ARROW KEYS to adjust the cube's position in 3D space. Press MOUSE to rotate the cube in the X and Y axes, (left-right and up-down) and use A KEY and D KEY to roll the cube about the Z axis.
Entirely pen-rendered. Now with added perspective! Thanks a lot to The Coding Train for his video on 3D rendering using 2D methods; you can see it here!: (https://www.youtube.com/watch?v=p4Iz0XJY-Qk) Also, note that the cube always rotates about its own center rather than the origin. While I used the principle of rotation matrices (https://en.wikipedia.org/wiki/Rotation_matrix) to make the rotation, that always rotates points about the origin. Therefore, I had to translate the cube so that its center is at the origin, meaning it effectively rotates about its center anyway. Once this is done, it can be returned to its normal position.