KeyUp (Event)
From Legacy Roblox Wiki
Jump to navigationJump to search
KeyUp ( String key ) | |
Description | Fired when a Key is released (the key is the key). |
---|---|
Member of: | Mouse |
Description
The key argument is the released key. Letter keys are lowercase.
Example
local function onKeyUp( key ) if(string.char( 13 ) == key) then -- return key -- do enter else print("Key:", key, " Code:", string.byte(key)) end end mouse.KeyUp:connect(onKeyUp)
Limitations
- Not all keys generate this event (For example, "/" key if chat is enabled).
- Some keys generate the same string as other keys.
- It's possible for the string to be empty (possibly due to "\0" key code).