If I wanted when, lets say W is pressed, I want the z axis only to change either negatively or positively, like ++ in cloning cubes. Please Reply.
No, like, in games, they have wasd, right? Well, I want the camera to move when i press one of the keys
I think what you´re looking for is pointerLockControls
here and example
https://threejs.org/examples/#misc_controls_pointerlock
and here the documentation
https://threejs.org/docs/index.html?q=PointerLockControls#examples/en/controls/PointerLockControls