function BaseCamera.OnKeyDown(d,H,e)if not d.hasGameLoaded and VRService.VREnabled then return end if e then return end if d.distanceChangeEnabled then if H.KeyCode==Enum.KeyCode.I then d:SetCameraToSubjectDistance(d.currentSubjectDistance-5)elseif H.KeyCode==Enum.KeyCode.O then d:SetCameraToSubjectDistance(d.currentSubjectDistance+5)end end if d.panBeginLook==nil and d.keyPanEnabled then if H.KeyCode==Enum.KeyCode.Left then d.turningLeft=true elseif H.KeyCode==Enum.KeyCode.Right then d.turningRight=true elseif H.KeyCode==Enum.KeyCode.Comma then local H=Util.RotateVectorByAngleAndRound(d:GetCameraLookVector()*Vector3.new(1,0,1),-math.pi*.1875,math.pi*.25)if H~=0 then d.rotateInput=d.rotateInput+Vector2.new(H,0)d.lastUserPanCamera=tick()d.lastCameraTransform=nil end elseif H.KeyCode==Enum.KeyCode.Period then local H=Util.RotateVectorByAngleAndRound(d:GetCameraLookVector()*Vector3.new(1,0,1),math.pi*.1875,math.pi*.25)if H~=0 then d.rotateInput=d.rotateInput+Vector2.new(H,0)d.lastUserPanCamera=tick()d.lastCameraTransform=nil end elseif H.KeyCode==Enum.KeyCode.PageUp then d.rotateInput=d.rotateInput+Vector2.new(0,math.rad(15))d.lastCameraTransform=nil elseif H.KeyCode==Enum.KeyCode.PageDown then d.rotateInput=d.rotateInput+Vector2.new(0,math.rad(-15))d.lastCameraTransform=nil end end end
--Remove with FFlagPlayerScriptsBindAtPriority
function BaseCamera:OnKeyDown(input, processed)
	if not self.hasGameLoaded and VRService.VREnabled then
		return
	end

	if processed then
		return
	end

	if self.distanceChangeEnabled then
		if input.KeyCode == Enum.KeyCode.I then
			self:SetCameraToSubjectDistance(self.currentSubjectDistance - 5)
		elseif input.KeyCode == Enum.KeyCode.O then
			self:SetCameraToSubjectDistance(self.currentSubjectDistance + 5)
		end
	end

	if self.panBeginLook == nil and self.keyPanEnabled then
		if input.KeyCode == Enum.KeyCode.Left then
			self.turningLeft = true
		elseif input.KeyCode == Enum.KeyCode.Right then
			self.turningRight = true
		elseif input.KeyCode == Enum.KeyCode.Comma then
			local angle = Util.RotateVectorByAngleAndRound(
				self:GetCameraLookVector() * Vector3.new(1, 0, 1),
				-math.pi * 0.1875,
				math.pi * 0.25
			)
			if angle ~= 0 then
				self.rotateInput = self.rotateInput + Vector2.new(angle, 0)
				self.lastUserPanCamera = tick()
				self.lastCameraTransform = nil
			end
		elseif input.KeyCode == Enum.KeyCode.Period then
			local angle = Util.RotateVectorByAngleAndRound(
				self:GetCameraLookVector() * Vector3.new(1, 0, 1),
				math.pi * 0.1875,
				math.pi * 0.25
			)
			if angle ~= 0 then
				self.rotateInput = self.rotateInput + Vector2.new(angle, 0)
				self.lastUserPanCamera = tick()
				self.lastCameraTransform = nil
			end
		elseif input.KeyCode == Enum.KeyCode.PageUp then
			self.rotateInput = self.rotateInput + Vector2.new(0, math.rad(15))
			self.lastCameraTransform = nil
		elseif input.KeyCode == Enum.KeyCode.PageDown then
			self.rotateInput = self.rotateInput + Vector2.new(0, math.rad(-15))
			self.lastCameraTransform = nil
		end
	end
end
