I created a script using service UserInputService so it print A when the key "A" is pressed. However it doesn't work. I tried direct copy and paste but it doesn't work either.
Here it is
local D = game:GetService("UserInputService")
D.InputBegan:Connect(function(input, gameProcessed) if input.KeyCode == Enum.KeyCode.A then print("A") end end)