KeyPressed (Event)

From Legacy Roblox Wiki
Jump to navigationJump to search
KeyPressed ( Instance key )
Description Fired after a key defined by the AddKey method is pressed.
Member of: [[RBX.lua.GuiService (Object)|GuiService]]


Example
game.GuiService.KeyPressed:connect(function(key)
print(key)
end)