class flash.ui.Keyboard

Available on all platforms

The Keyboard class is used to build an interface that can be controlled by * a user with a standard keyboard. You can use the methods and properties of * the Keyboard class without using a constructor. The properties of the * Keyboard class are constants representing the keys that are most commonly * used to control games.

Class Fields

static var A:UInt

Constant associated with the key code value for the A key(65).

static var ALTERNATE:UInt

Constant associated with the key code value for the Alternate(Option) key * (18).

static var AUDIO:UInt

Select the audio mode

static var B:UInt

Constant associated with the key code value for the B key(66).

static var BACK:UInt

Return to previous page in application

static var BACKQUOTE:UInt

Constant associated with the key code value for the ` key(192).

static var BACKSLASH:UInt

Constant associated with the key code value for the \ key(220).

static var BACKSPACE:UInt

Constant associated with the key code value for the Backspace key(8).

static var BLUE:UInt

Blue function key button

static var C:UInt

Constant associated with the key code value for the C key(67).

static var CAPS_LOCK:UInt

Constant associated with the key code value for the Caps Lock key(20).

static var CHANNEL_DOWN:UInt

Channel down

static var CHANNEL_UP:UInt

Channel up

static var COMMA:UInt

Constant associated with the key code value for the , key(188).

static var COMMAND:UInt

Constant associated with the Mac command key(15). This constant is * currently only used for setting menu key equivalents.

static var CONTROL:UInt

Constant associated with the key code value for the Control key(17).

static var CharCodeStrings:Array<Dynamic>

An array containing all the defined key name constants.

static var D:UInt

Constant associated with the key code value for the D key(68).

static var DELETE:UInt

Constant associated with the key code value for the Delete key(46).

static var DOWN:UInt

Constant associated with the key code value for the Down Arrow key(40).

static var DVR:UInt

Engage DVR application mode

static var E:UInt

Constant associated with the key code value for the E key(69).

static var END:UInt

Constant associated with the key code value for the End key(35).

static var ENTER:UInt

Constant associated with the key code value for the Enter key(13).

static var EQUAL:UInt

Constant associated with the key code value for the = key(187).

static var ESCAPE:UInt

Constant associated with the key code value for the Escape key(27).

static var EXIT:UInt

Exits current application mode

static var F:UInt

Constant associated with the key code value for the F key(70).

static var F1:UInt

Constant associated with the key code value for the F1 key(112).

static var F10:UInt

Constant associated with the key code value for the F10 key(121).

static var F11:UInt

Constant associated with the key code value for the F11 key(122).

static var F12:UInt

Constant associated with the key code value for the F12 key(123).

static var F13:UInt

Constant associated with the key code value for the F13 key(124).

static var F14:UInt

Constant associated with the key code value for the F14 key(125).

static var F15:UInt

Constant associated with the key code value for the F15 key(126).

static var F2:UInt

Constant associated with the key code value for the F2 key(113).

static var F3:UInt

Constant associated with the key code value for the F3 key(114).

static var F4:UInt

Constant associated with the key code value for the F4 key(115).

static var F5:UInt

Constant associated with the key code value for the F5 key(116).

static var F6:UInt

Constant associated with the key code value for the F6 key(117).

static var F7:UInt

Constant associated with the key code value for the F7 key(118).

static var F8:UInt

Constant associated with the key code value for the F8 key(119).

static var F9:UInt

Constant associated with the key code value for the F9 key(120).

static var FAST_FORWARD:UInt

Engage fast-forward transport mode

static var G:UInt

Constant associated with the key code value for the G key(71).

static var GREEN:UInt

Green function key button

static var GUIDE:UInt

Engage program guide

static var H:UInt

Constant associated with the key code value for the H key(72).

static var HELP:UInt

Engage help application or context-sensitive help

static var HOME:UInt

Constant associated with the key code value for the Home key(36).

static var I:UInt

Constant associated with the key code value for the I key(73).

static var INFO:UInt

Info button

static var INPUT:UInt

Cycle input

static var INSERT:UInt

Constant associated with the key code value for the Insert key(45).

static var J:UInt

Constant associated with the key code value for the J key(74).

static var K:UInt

Constant associated with the key code value for the K key(75).

static var KEYNAME_BEGIN:String

The Begin key

static var KEYNAME_BREAK:String

The Break key

static var KEYNAME_CLEARDISPLAY:String

The Clear Display key

static var KEYNAME_CLEARLINE:String

The Clear Line key

static var KEYNAME_DELETE:String

The Delete key

static var KEYNAME_DELETECHAR:String

The Delete Character key

static var KEYNAME_DELETELINE:String

The Delete Line key

static var KEYNAME_DOWNARROW:String

The down arrow

static var KEYNAME_END:String

The End key

static var KEYNAME_EXECUTE:String

The Execute key

static var KEYNAME_F1:String

The F1 key

static var KEYNAME_F10:String

The F10 key

static var KEYNAME_F11:String

The F11 key

static var KEYNAME_F12:String

The F12 key

static var KEYNAME_F13:String

The F13 key

static var KEYNAME_F14:String

The F14 key

static var KEYNAME_F15:String

The F15 key

static var KEYNAME_F16:String

The F16 key

static var KEYNAME_F17:String

The F17 key

static var KEYNAME_F18:String

The F18 key

static var KEYNAME_F19:String

The F19 key

static var KEYNAME_F2:String

The F2 key

static var KEYNAME_F20:String

The F20 key

static var KEYNAME_F21:String

The F21 key

static var KEYNAME_F22:String

The F22 key

static var KEYNAME_F23:String

The F23 key

static var KEYNAME_F24:String

The F24 key

static var KEYNAME_F25:String

The F25 key

static var KEYNAME_F26:String

The F26 key

static var KEYNAME_F27:String

The F27 key

static var KEYNAME_F28:String

The F28 key

static var KEYNAME_F29:String

The F29 key

static var KEYNAME_F3:String

The F3 key

static var KEYNAME_F30:String

The F30 key

static var KEYNAME_F31:String

The F31 key

static var KEYNAME_F32:String

The F32 key

static var KEYNAME_F33:String

The F33 key

static var KEYNAME_F34:String

The F34 key

static var KEYNAME_F35:String

The F35 key

static var KEYNAME_F4:String

The F4 key

static var KEYNAME_F5:String

The F5 key

static var KEYNAME_F6:String

The F6 key

static var KEYNAME_F7:String

The F7 key

static var KEYNAME_F8:String

The F8 key

static var KEYNAME_F9:String

The F9 key

static var KEYNAME_FIND:String

The Find key

static var KEYNAME_HELP:String

The Help key

static var KEYNAME_HOME:String

The Home key

static var KEYNAME_INSERT:String

The Insert key

static var KEYNAME_INSERTCHAR:String

The Insert Character key

static var KEYNAME_INSERTLINE:String

The Insert Line key

static var KEYNAME_LEFTARROW:String

The left arrow

static var KEYNAME_MENU:String

The Menu key

static var KEYNAME_MODESWITCH:String

The Mode Switch key

static var KEYNAME_NEXT:String

The Next key

static var KEYNAME_PAGEDOWN:String

The Page Down key

static var KEYNAME_PAGEUP:String

The Page Up key

static var KEYNAME_PAUSE:String

The Pause key

static var KEYNAME_PREV:String

The Previous key

static var KEYNAME_PRINT:String

The Print key

static var KEYNAME_PRINTSCREEN:String

The Print Screen

static var KEYNAME_REDO:String

The Redo key

static var KEYNAME_RESET:String

The Reset key

static var KEYNAME_RIGHTARROW:String

The right arrow

static var KEYNAME_SCROLLLOCK:String

The Scroll Lock key

static var KEYNAME_SELECT:String

The Select key

static var KEYNAME_STOP:String

The Stop key

static var KEYNAME_SYSREQ:String

The System Request key

static var KEYNAME_SYSTEM:String

The System key

static var KEYNAME_UNDO:String

The Undo key

static var KEYNAME_UPARROW:String

The up arrow

static var KEYNAME_USER:String

The User key

static var L:UInt

Constant associated with the key code value for the L key(76).

static var LAST:UInt

Watch last channel or show watched

static var LEFT:UInt

Constant associated with the key code value for the Left Arrow key(37).

static var LEFTBRACKET:UInt

Constant associated with the key code value for the [ key(219).

static var LIVE:UInt

Return to live [position in broadcast]

static var M:UInt

Constant associated with the key code value for the M key(77).

static var MASTER_SHELL:UInt

Engage "Master Shell" e.g. TiVo or other vendor button

static var MENU:UInt

Engage menu

static var MINUS:UInt

Constant associated with the key code value for the - key(189).

static var N:UInt

Constant associated with the key code value for the N key(78).

static var NEXT:UInt

Skip to next track or chapter

static var NUMBER_0:UInt

Constant associated with the key code value for the 0 key(48).

static var NUMBER_1:UInt

Constant associated with the key code value for the 1 key(49).

static var NUMBER_2:UInt

Constant associated with the key code value for the 2 key(50).

static var NUMBER_3:UInt

Constant associated with the key code value for the 3 key(51).

static var NUMBER_4:UInt

Constant associated with the key code value for the 4 key(52).

static var NUMBER_5:UInt

Constant associated with the key code value for the 5 key(53).

static var NUMBER_6:UInt

Constant associated with the key code value for the 6 key(54).

static var NUMBER_7:UInt

Constant associated with the key code value for the 7 key(55).

static var NUMBER_8:UInt

Constant associated with the key code value for the 8 key(56).

static var NUMBER_9:UInt

Constant associated with the key code value for the 9 key(57).

static var NUMPAD:UInt

Constant associated with the pseudo-key code for the the number pad(21). * Use to set numpad modifier on key equivalents

static var NUMPAD_0:UInt

Constant associated with the key code value for the number 0 key on the * number pad(96).

static var NUMPAD_1:UInt

Constant associated with the key code value for the number 1 key on the * number pad(97).

static var NUMPAD_2:UInt

Constant associated with the key code value for the number 2 key on the * number pad(98).

static var NUMPAD_3:UInt

Constant associated with the key code value for the number 3 key on the * number pad(99).

static var NUMPAD_4:UInt

Constant associated with the key code value for the number 4 key on the * number pad(100).

static var NUMPAD_5:UInt

Constant associated with the key code value for the number 5 key on the * number pad(101).

static var NUMPAD_6:UInt

Constant associated with the key code value for the number 6 key on the * number pad(102).

static var NUMPAD_7:UInt

Constant associated with the key code value for the number 7 key on the * number pad(103).

static var NUMPAD_8:UInt

Constant associated with the key code value for the number 8 key on the * number pad(104).

static var NUMPAD_9:UInt

Constant associated with the key code value for the number 9 key on the * number pad(105).

static var NUMPAD_ADD:UInt

Constant associated with the key code value for the addition key on the * number pad(107).

static var NUMPAD_DECIMAL:UInt

Constant associated with the key code value for the decimal key on the * number pad(110).

static var NUMPAD_DIVIDE:UInt

Constant associated with the key code value for the division key on the * number pad(111).

static var NUMPAD_ENTER:UInt

Constant associated with the key code value for the Enter key on the * number pad(108).

static var NUMPAD_MULTIPLY:UInt

Constant associated with the key code value for the multiplication key on * the number pad(106).

static var NUMPAD_SUBTRACT:UInt

Constant associated with the key code value for the subtraction key on the * number pad(109).

static var O:UInt

Constant associated with the key code value for the O key(79).

static var P:UInt

Constant associated with the key code value for the P key(80).

static var PAGE_DOWN:UInt

Constant associated with the key code value for the Page Down key(34).

static var PAGE_UP:UInt

Constant associated with the key code value for the Page Up key(33).

static var PAUSE:UInt

Engage pause transport mode

static var PERIOD:UInt

Constant associated with the key code value for the . key(190).

static var PLAY:UInt

Engage play transport mode

static var PREVIOUS:UInt

Skip to previous track or chapter

static var Q:UInt

Constant associated with the key code value for the Q key(81).

static var QUOTE:UInt

Constant associated with the key code value for the ' key(222).

static var R:UInt

Constant associated with the key code value for the R key(82).

static var RECORD:UInt

Record item or engage record transport mode

static var RED:UInt

Red function key button

static var REWIND:UInt

Engage rewind transport mode

static var RIGHT:UInt

Constant associated with the key code value for the Right Arrow key(39).

static var RIGHTBRACKET:UInt

Constant associated with the key code value for the ] key(221).

static var S:UInt

Constant associated with the key code value for the S key(83).

static var SEARCH:UInt

Search button

static var SEMICOLON:UInt

Constant associated with the key code value for the ; key(186).

static var SETUP:UInt

Engage setup application or menu

static var SHIFT:UInt

Constant associated with the key code value for the Shift key(16).

static var SKIP_BACKWARD:UInt

Quick skip backward(usually 7-10 seconds)

static var SKIP_FORWARD:UInt

Quick skip ahead(usually 30 seconds)

static var SLASH:UInt

Constant associated with the key code value for the / key(191).

static var SPACE:UInt

Constant associated with the key code value for the Spacebar(32).

static var STOP:UInt

Engage stop transport mode

static var STRING_BEGIN:String

The OS X Unicode Begin constant

static var STRING_BREAK:String

The OS X Unicode Break constant

static var STRING_CLEARDISPLAY:String

The OS X Unicode Clear Display constant

static var STRING_CLEARLINE:String

The OS X Unicode Clear Line constant

static var STRING_DELETE:String

The OS X Unicode Delete constant

static var STRING_DELETECHAR:String

The OS X Unicode Delete Character constant

static var STRING_DELETELINE:String

The OS X Unicode Delete Line constant

static var STRING_DOWNARROW:String

The OS X Unicode down arrow constant

static var STRING_END:String

The OS X Unicode End constant

static var STRING_EXECUTE:String

The OS X Unicode Execute constant

static var STRING_F1:String

The OS X Unicode F1 constant

static var STRING_F10:String

The OS X Unicode F10 constant

static var STRING_F11:String

The OS X Unicode F11 constant

static var STRING_F12:String

The OS X Unicode F12 constant

static var STRING_F13:String

The OS X Unicode F13 constant

static var STRING_F14:String

The OS X Unicode F14 constant

static var STRING_F15:String

The OS X Unicode F15 constant

static var STRING_F16:String

The OS X Unicode F16 constant

static var STRING_F17:String

The OS X Unicode F17 constant

static var STRING_F18:String

The OS X Unicode F18 constant

static var STRING_F19:String

The OS X Unicode F19 constant

static var STRING_F2:String

The OS X Unicode F2 constant

static var STRING_F20:String

The OS X Unicode F20 constant

static var STRING_F21:String

The OS X Unicode F21 constant

static var STRING_F22:String

The OS X Unicode F22 constant

static var STRING_F23:String

The OS X Unicode F23 constant

static var STRING_F24:String

The OS X Unicode F24 constant

static var STRING_F25:String

The OS X Unicode F25 constant

static var STRING_F26:String

The OS X Unicode F26 constant

static var STRING_F27:String

The OS X Unicode F27 constant

static var STRING_F28:String

The OS X Unicode F28 constant

static var STRING_F29:String

The OS X Unicode F29 constant

static var STRING_F3:String

The OS X Unicode F3 constant

static var STRING_F30:String

The OS X Unicode F30 constant

static var STRING_F31:String

The OS X Unicode F31 constant

static var STRING_F32:String

The OS X Unicode F32 constant

static var STRING_F33:String

The OS X Unicode F33 constant

static var STRING_F34:String

The OS X Unicode F34 constant

static var STRING_F35:String

The OS X Unicode F35 constant

static var STRING_F4:String

The OS X Unicode F4 constant

static var STRING_F5:String

The OS X Unicode F5 constant

static var STRING_F6:String

The OS X Unicode F6 constant

static var STRING_F7:String

The OS X Unicode F7 constant

static var STRING_F8:String

The OS X Unicode F8 constant

static var STRING_F9:String

The OS X Unicode F9 constant

static var STRING_FIND:String

The OS X Unicode Find constant

static var STRING_HELP:String

The OS X Unicode Help constant

static var STRING_HOME:String

The OS X Unicode Home constant

static var STRING_INSERT:String

The OS X Unicode Insert constant

static var STRING_INSERTCHAR:String

The OS X Unicode Insert Character constant

static var STRING_INSERTLINE:String

The OS X Unicode Insert Line constant

static var STRING_LEFTARROW:String

The OS X Unicode left arrow constant

static var STRING_MENU:String

The OS X Unicode Menu constant

static var STRING_MODESWITCH:String

The OS X Unicode Mode Switch constant

static var STRING_NEXT:String

The OS X Unicode Next constant

static var STRING_PAGEDOWN:String

The OS X Unicode Page Down constant

static var STRING_PAGEUP:String

The OS X Unicode Page Up constant

static var STRING_PAUSE:String

The OS X Unicode Pause constant

static var STRING_PREV:String

The OS X Unicode Previous constant

static var STRING_PRINT:String

The OS X Unicode Print constant

static var STRING_PRINTSCREEN:String

The OS X Unicode Print Screen constant

static var STRING_REDO:String

The OS X Unicode Redo constant

static var STRING_RESET:String

The OS X Unicode Reset constant

static var STRING_RIGHTARROW:String

The OS X Unicode right arrow constant

static var STRING_SCROLLLOCK:String

The OS X Unicode Scroll Lock constant

static var STRING_SELECT:String

The OS X Unicode Select constant

static var STRING_STOP:String

The OS X Unicode Stop constant

static var STRING_SYSREQ:String

The OS X Unicode System Request constant

static var STRING_SYSTEM:String

The OS X Unicode System constant

static var STRING_UNDO:String

The OS X Unicode Undo constant

static var STRING_UPARROW:String

The OS X Unicode up arrow constant

static var STRING_USER:String

The OS X Unicode User constant

static var SUBTITLE:UInt

Toggle subtitles

static var T:UInt

Constant associated with the key code value for the T key(84).

static var TAB:UInt

Constant associated with the key code value for the Tab key(9).

static var U:UInt

Constant associated with the key code value for the U key(85).

static var UP:UInt

Constant associated with the key code value for the Up Arrow key(38).

static var V:UInt

Constant associated with the key code value for the V key(86).

static var VOD:UInt

Engage video-on-demand

static var W:UInt

Constant associated with the key code value for the W key(87).

static var X:UInt

Constant associated with the key code value for the X key(88).

static var Y:UInt

Constant associated with the key code value for the Y key(89).

static var YELLOW:UInt

Yellow function key button

static var Z:UInt

Constant associated with the key code value for the Z key(90).

static var capsLock:Bool

Specifies whether the Caps Lock key is activated(true) or * not(false).

static var hasVirtualKeyboard:Bool

Indicates whether the computer or device provides a virtual keyboard. If * the current environment provides a virtual keyboard, this value is * true.

static var numLock:Bool

Specifies whether the Num Lock key is activated(true) or not * (false).

static var physicalKeyboardType:KeyboardType

Indicates the type of physical keyboard provided by the computer or * device, if any. *

Use the constants defined in the KeyboardType class to test the values * reported by this property.

*

Note: If a computer or device has both an alphanumeric keyboard * and a 12-button keypad, this property only reports the presence of the * alphanumeric keyboard.

static function isAccessible():Bool

Specifies whether the last key pressed is accessible by other SWF files. * By default, security restrictions prevent code from a SWF file in one * domain from accessing a keystroke generated from a SWF file in another * domain. * *

returns

The value true if the last key pressed can be accessed. If access is not permitted, this method returns false.