Use the arrow keys to move, space to jump, and z to mark a spot on the ground.
I didn't really make this, I just edited this popular 3-D engine that is mostly used in 3-D Minecraft projects. I do not know exactly who created this 3-D engine, but whoever that person is, please give all credit to them.