Camera movement with keys! But bug where if you hold down the left/right keys the y goes back to 0

Someone help with the bug! I gotta go to class.