Use WASD for the back face of the cuboid and use arrow keys for the front face. Use turbowarp for better performance: https://turbowarp.org/1021851101?fps=35&interpolate&stuck&clones=Infinity
I used Pen for this project The code for this project was developed completely by me so give credit if used