Tween and walkspeed goes back to normal when you press any button

when i press left shift it works but i cant press any other button or else it will go back to original walkspeed and field of view

local UIS = game:GetService("UserInputService")

	

UIS.InputBegan:Connect(function(Input,IsTyping)
	
if IsTyping then return end
		if Input.KeyCode == Enum.KeyCode.LeftShift  then	

	
game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = 32
		local goal = {FieldOfView = 90} 
local Info = TweenInfo.new(0.9, Enum.EasingStyle.Sine) 
			local T = game:GetService("TweenService"):Create(game.Workspace.CurrentCamera, Info, goal)
			

			T:Play()
			end
	end)



	UIS.InputEnded:Connect(function(Input,IsTyping)

	game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = 16
local goal2 = {FieldOfView = 70} 
	local Info = TweenInfo.new(0.9, Enum.EasingStyle.Sine) 
	local T = game:GetService("TweenService"):Create(game.Workspace.CurrentCamera, Info, goal2)


			T:Play()
			 
			end) 

if you need a video then ask

First, please indent your code correctly. It’s so hard to read.

Second, you’re making it so that when any key on the keyboard is released, it will set back to the original state. To fix this add an if statement to check if the left shift key is released.