Table of Contents

KeyCode

Inherits: Object

Supported platforms:

Available since version: Gideros 2011.6

Description:

KeyCode table holds the key code constants. These map directly to a physical key on the keyboard.

Common uses and examples:

Listening for back button

stage:addEventListener(Event.KEY_DOWN, function(event)
    if event.keyCode == KeyCode.BACK then
        application:exit()
    end
end)

Methods, events and properties: