local player = game.Players.LocalPlayer local mouse = player:GetMouse() mouse.KeyDown:connect(function() print("Pressed a key.") end)