UserInputSerivce:IsKeyDown() not working properly

Paste my code and the original function.

What do you mean by original function?

No, you did it wrong.
Put my code I sent yesterday.