On keyboard button, I am calling following function. I just want to apply movement on Z-axis. It works perfectly.
// declared global Object3D object function