ok so i changed plans since im still new to coding imma make a simple viewig game so i wanna know how to make the camera move when I press a key on the keyboard
Check out this tutorial:
First Person Movement Tutorial
You should be able to just save the script and attach it to the camera in your project.