PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. To see our new and improved documentation, please click here. You can read more about the future of documentation here.
Collapse Sidebar

KeyUp

This event is fired when a Key is released, with the passed argument being the key that was released.

Notes

  • Not all keys generate this event. However, you can get around this with a few of the keys, “/” for example, by using the [[API:Class/Mouse/KeyUp|KeyUp]] event.
  • Some keys generate the same string as other keys.
  • It’s possible for the string to be empty (possibly due to “\0” key code).

Parameters

Name Type Default Description

key


Code Samples


Mouse KeyUp

The below example, assuming that ‘mouse’ was defined, would print the key that was released (e.g. “q”) along with the ascii value for that key (e.g. 113).