📅  最后修改于: 2022-03-11 14:58:37.176000             🧑  作者: Mango
local player = game.Players.LocalPlayer
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, gameProcessed)
if gameProcessed then
return end
if input.KeyCode == Enum.KeyCode.F then
print("Congrats you pressed the Key F")
end
end)