I was trying to make a input handler for a project, that should work for mobile and pc, but realise that User Input Service has something like a bug, if you press left control, it will fire the input as begin, and without realising it, you press another key, like the E, and you realese the left control, the left control ended input will fire, but a second later a E Began input will fire, but you have not realesed the letter E
I have the same problem with the left shift, do someone know how fix it?
The code for debugging (maybe is my laptop?)
UIS.InputBegan:Connect(function(input: InputObject, gameProcessedEvent: boolean)
warn(input.KeyCode,input.UserInputState,input.UserInputType.Name)
end)
UIS.InputEnded:Connect(function(input: InputObject, gameProcessedEvent: boolean)
warn(input.KeyCode,input.UserInputState,input.UserInputType.Name)
end)