userInputService.InputBegan:Connect(function(Q)handleKeyState(Q.KeyCode,true)end)userInputService.InputEnded:Connect(function(Q)handleKeyState(Q.KeyCode,false)end)
-- Connect key state change event
userInputService.InputBegan:Connect(function(input)
	handleKeyState(input.KeyCode, true)
end)

userInputService.InputEnded:Connect(function(input)
	handleKeyState(input.KeyCode, false)
end)
