SpecialKeyPressed (Event)
From Legacy Roblox Wiki
Jump to navigationJump to search
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
SpecialKeyPressed ( SpecialKey (Enum) key, string modifiers ) | |
Description | Fired after a special key is pressed. |
---|---|
Member of: | GuiService |
Example
Everytime a special key is pressed, if the key was added using the AddSpecialKey method, this code would print the key's enum and its modifiers.
game.GuiService.SpecialKeyPressed:connect(function(key, modifiers)
print(key, modifiers)
end)