The Title Is Pretty Self-Explanatory

I Tried To Use This Code:

UIS.InputEnded:Connect(function(input,gameprocessed)
	if input.KeyCode == Enum.KeyCode.W or Enum.KeyCode.S or Enum.KeyCode.A or Enum.KeyCode.D then
		if player.Injures.bLeg.Value == true then
			wait(.1)
			bLegAnim:Stop()
			hum.WalkSpeed = 10
		end
	end
end)

To Check If He Doesnt Have Anything Pressed, But I Realized That Checking If The Player Has Nothing Pressed Is Better, Is There A Way To Check It ?