xxxxxxxxxx
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyPressed:Connect(function(key)
print(key)
end)
-- There are other more efficient ways to do this (using UserInputService maybe) but
-- this works well enough.