Use the arrow keys or mouse to rotate. Eriquito360 looked at fyromaniac1's 3D cube project that Z-demensions helped with to figure out the custom block math code. Eriquito360 modified it and added velocity.
All @Eriquito360 ... I only added better Mouse control.