local uis = game:GetService("UserInputService")
uis.InputBegan:Connect(function(Key)
if Key.KeyCode == Enum.KeyCode.Space then
--Local player pressed SPACE
end
end)
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
mouse.KeyDown:connect(function()
print("Pressed a key.")
end)