UserInputService Not working on local scripts

My current issue is, that I want to detect when a Player presses the Left Shift key, It does function however, I’ve Debugged it with the print() function and nothing seems to be happening. Is there a way to fix this?

UserInputService.InputBegan:Connect(function(input)
     if input == Enum.KeyCode.LeftShift then
          print("Test")
     end
end)

It doesn’t print anything into the Output.

*The script location is originally in StarterCharacterScripts
*Its running on a local script

a small issue in the if statement

UserInputService.InputBegan:Connect(function(input)
     if input.KeyCode == Enum.KeyCode.LeftShift then
          print("Test")
     end
end)

this will do it