Skip to main content

KeyEvent

declare class KeyEvent {}

Static Property

KEYCODE_ESCAPE

declare class KeyEvent {
static KEYCODE_ESCAPE: number
}
  • Description

    Represents the Escape key.

KEYCODE_F1

declare class KeyEvent {
static KEYCODE_F1: number
}
  • Description

    Represents the F1 key.

KEYCODE_F2

declare class KeyEvent {
static KEYCODE_F2: number
}
  • Description

    Represents the F2 key.

KEYCODE_F3

declare class KeyEvent {
static KEYCODE_F3: number
}
  • Description

    Represents the F3 key.

KEYCODE_F4

declare class KeyEvent {
static KEYCODE_F4: number
}
  • Description

    Represents the F4 key.

KEYCODE_F5

declare class KeyEvent {
static KEYCODE_F5: number
}
  • Description

    Represents the F5 key.

KEYCODE_F6

declare class KeyEvent {
static KEYCODE_F6: number
}
  • Description

    Represents the F6 key.

KEYCODE_F7

declare class KeyEvent {
static KEYCODE_F7: number
}
  • Description

    Represents the F7 key.

KEYCODE_F8

declare class KeyEvent {
static KEYCODE_F8: number
}
  • Description

    Represents the F8 key.

KEYCODE_F9

declare class KeyEvent {
static KEYCODE_F9: number
}
  • Description

    Represents the F9 key.

KEYCODE_F10

declare class KeyEvent {
static KEYCODE_F10: number
}
  • Description

    Represents the F10 key.

KEYCODE_F11

declare class KeyEvent {
static KEYCODE_F11: number
}
  • Description

    Represents the F11 key.

KEYCODE_F12

declare class KeyEvent {
static KEYCODE_F12: number
}
  • Description

    Represents the F12 key.

KEYCODE_SCROLL_LOCK

declare class KeyEvent {
static KEYCODE_SCROLL_LOCK: number
}
  • Description

    Represents the Scroll Lock key.

KEYCODE_GRAVE

declare class KeyEvent {
static KEYCODE_GRAVE: number
}
  • Description

    Represents the Grave key.

KEYCODE_NUMPAD_1

declare class KeyEvent {
static KEYCODE_NUMPAD_1: number
}
  • Description

    Represents the number pad 1 key.

KEYCODE_NUMPAD_2

declare class KeyEvent {
static KEYCODE_NUMPAD_2: number
}
  • Description

    Represents the number pad 2 key.

KEYCODE_NUMPAD_3

declare class KeyEvent {
static KEYCODE_NUMPAD_3: number
}
  • Description

    Represents the number pad 3 key.

KEYCODE_NUMPAD_4

declare class KeyEvent {
static KEYCODE_NUMPAD_4: number
}
  • Description

    Represents the number pad 4 key.

KEYCODE_NUMPAD_5

declare class KeyEvent {
static KEYCODE_NUMPAD_5: number
}
  • Description

    Represents the number pad 5 key.

KEYCODE_NUMPAD_6

declare class KeyEvent {
static KEYCODE_NUMPAD_6: number
}
  • Description

    Represents the number pad 6 key.

KEYCODE_NUMPAD_7

declare class KeyEvent {
static KEYCODE_NUMPAD_7: number
}
  • Description

    Represents the number pad 7 key.

KEYCODE_NUMPAD_8

declare class KeyEvent {
static KEYCODE_NUMPAD_8: number
}
  • Description

    Represents the number pad 8 key.

KEYCODE_NUMPAD_9

declare class KeyEvent {
static KEYCODE_NUMPAD_9: number
}
  • Description

    Represents the number pad 9 key.

KEYCODE_NUMPAD_0

declare class KeyEvent {
static KEYCODE_NUMPAD_0: number
}
  • Description

    Represents the number pad 0 key.

KEYCODE_MINUS

declare class KeyEvent {
static KEYCODE_MINUS: number
}
  • Description

    Represents the Minus (-) key.

KEYCODE_EQUALS

declare class KeyEvent {
static KEYCODE_EQUALS: number
}
  • Description

    Represents the Equals (=) key.

KEYCODE_BACK

declare class KeyEvent {
static KEYCODE_BACK: number
}
  • Description

    Represents the Back key.

KEYCODE_INSERT

declare class KeyEvent {
static KEYCODE_INSERT: number
}
  • Description

    Represents the Insert key.

KEYCODE_HOME

declare class KeyEvent {
static KEYCODE_HOME: number
}
  • Description

    Represents the Home key.

KEYCODE_PAGE_UP

declare class KeyEvent {
static KEYCODE_PAGE_UP: number
}
  • Description

    Represents the Page Up key.

KEYCODE_DEL

declare class KeyEvent {
static KEYCODE_DEL: number
}
  • Description

    Represents the Delete key.

KEYCODE_ENDCALL

declare class KeyEvent {
static KEYCODE_ENDCALL: number
}
  • Description

    Represents the End Call key.

KEYCODE_PAGE_DOWN

declare class KeyEvent {
static KEYCODE_PAGE_DOWN: number
}
  • Description

    Represents the Page Down key.

KEYCODE_TAB

declare class KeyEvent {
static KEYCODE_TAB: number
}
  • Description

    Represents the Tab key.

KEYCODE_Q

declare class KeyEvent {
static KEYCODE_Q: number
}
  • Description

    Represents the Q key.

KEYCODE_W

declare class KeyEvent {
static KEYCODE_W: number
}
  • Description

    Represents the W key.

KEYCODE_E

declare class KeyEvent {
static KEYCODE_E: number
}
  • Description

    Represents the E key.

KEYCODE_R

declare class KeyEvent {
static KEYCODE_R: number
}
  • Description

    Represents the R key.

KEYCODE_T

declare class KeyEvent {
static KEYCODE_T: number
}
  • Description

    Represents the T key.

KEYCODE_Y

declare class KeyEvent {
static KEYCODE_Y: number
}
  • Description

    Represents the Y key.

KEYCODE_U

declare class KeyEvent {
static KEYCODE_U: number
}
  • Description

    Represents the U key.

KEYCODE_I

declare class KeyEvent {
static KEYCODE_I: number
}
  • Description

    Represents the I key.

KEYCODE_0

declare class KeyEvent {
static KEYCODE_0: number
}
  • Description

    Represents the 0 key.

KEYCODE_P

declare class KeyEvent {
static KEYCODE_P: number
}
  • Description

    Represents the P key.

KEYCODE_BACKSLASH

declare class KeyEvent {
static KEYCODE_BACKSLASH: number
}
  • Description

    Represents the Backslash () key.

KEYCODE_LEFT_BRACKET

declare class KeyEvent {
static KEYCODE_LEFT_BRACKET: number
}
  • Description

    Represents the Left Bracket ([) key.

KEYCODE_RIGHT_BRACKET

declare class KeyEvent {
static KEYCODE_RIGHT_BRACKET: number
}
  • Description

    Represents the Right Bracket (]) key.

KEYCODE_CAPS_LOCK

declare class KeyEvent {
static KEYCODE_CAPS_LOCK: number
}
  • Description

    Represents the Caps Lock key.

KEYCODE_A

declare class KeyEvent {
static KEYCODE_A: number
}
  • Description

    Represents the A key.

KEYCODE_S

declare class KeyEvent {
static KEYCODE_S: number
}
  • Description

    Represents the S key.

KEYCODE_D

declare class KeyEvent {
static KEYCODE_D: number
}
  • Description

    Represents the D key.

KEYCODE_F

declare class KeyEvent {
static KEYCODE_F: number
}
  • Description

    Represents the F key.

KEYCODE_G

declare class KeyEvent {
static KEYCODE_G: number
}
  • Description

    Represents the G key.

KEYCODE_H

declare class KeyEvent {
static KEYCODE_H: number
}
  • Description

    Represents the H key.

KEYCODE_J

declare class KeyEvent {
static KEYCODE_J: number
}
  • Description

    Represents the J key.

KEYCODE_K

declare class KeyEvent {
static KEYCODE_K: number
}
  • Description

    Represents the K key.

KEYCODE_L

declare class KeyEvent {
static KEYCODE_L: number
}
  • Description

    Represents the L key.

KEYCODE_SEMICOLON

declare class KeyEvent {
static KEYCODE_SEMICOLON: number
}
  • Description

    Represents the Semicolon (;) key.

KEYCODE_APOSTROPHE

declare class KeyEvent {
static KEYCODE_APOSTROPHE: number
}
  • Description

    Represents the Apostrophe (') key.

KEYCODE_ENTER

declare class KeyEvent {
static KEYCODE_ENTER: number
}
  • Description

    Represents the Enter key.

KEYCODE_SHIFT_LEFT

declare class KeyEvent {
static KEYCODE_SHIFT_LEFT: number
}
  • Description

    Represents the Left Shift key.

KEYCODE_Z

declare class KeyEvent {
static KEYCODE_Z: number;
}
  • Description

    Represents the Z key.

KEYCODE_X

declare class KeyEvent {
static KEYCODE_X: number;
}
  • Description

    Represents the X key.

KEYCODE_C

declare class KeyEvent {
static KEYCODE_C: number;
}
  • Description

    Represents the C key.

KEYCODE_V

declare class KeyEvent {
static KEYCODE_V: number;
}
  • Description

    Represents the V key.

KEYCODE_B

declare class KeyEvent {
static KEYCODE_B: number;
}
  • Description

    Represents the B key.

KEYCODE_N

declare class KeyEvent {
static KEYCODE_N: number;
}
  • Description

    Represents the N key.

KEYCODE_M

declare class KeyEvent {
static KEYCODE_M: number;
}
  • Description

    Represents the M key.

KEYCODE_COMMA

declare class KeyEvent {
static KEYCODE_COMMA: number;
}
  • Description

    Represents the Comma (,) key.

KEYCODE_PERIOD

declare class KeyEvent {
static KEYCODE_PERIOD: number;
}
  • Description

    Represents the Period (.) key.

KEYCODE_SLASH

declare class KeyEvent {
static KEYCODE_SLASH: number;
}
  • Description

    Represents the Slash (/) key.

KEYCODE_CTRL_LEFT

declare class KeyEvent {
static KEYCODE_CTRL_LEFT: number;
}
  • Description

    Represents the Left Control key.

KEYCODE_META_LEFT

declare class KeyEvent {
static KEYCODE_META_LEFT: number;
}
  • Description

    Represents the Left Meta key.

KEYCODE_ALT_LEFT

declare class KeyEvent {
static KEYCODE_ALT_LEFT: number;
}
  • Description

    Represents the Left Alt key.

KEYCODE_SPACE

declare class KeyEvent {
static KEYCODE_SPACE: number;
}
  • Description

    Represents the Space key.

KEYCODE_ALT_RIGHT

declare class KeyEvent {
static KEYCODE_ALT_RIGHT: number;
}
  • Description

    Represents the Right Alt key.

KEYCODE_MENU

declare class KeyEvent {
static KEYCODE_MENU: number;
}
  • Description

    Represents the Menu key.

KEYCODE_CTRL_RIGHT

declare class KeyEvent {
static KEYCODE_CTRL_RIGHT: number;
}
  • Description

    Represents the Right Control key.

KEYCODE_DPAD_UP

declare class KeyEvent {
static KEYCODE_DPAD_UP: number;
}
  • Description

    Represents the Up arrow key on the D-pad.

KEYCODE_DPAD_LEFT

declare class KeyEvent {
static KEYCODE_DPAD_LEFT: number;
}
  • Description

    Represents the Left arrow key on the D-pad.

KEYCODE_DPAD_DOWN

declare class KeyEvent {
static KEYCODE_DPAD_DOWN: number;
}
  • Description

    Represents the Down arrow key on the D-pad.

KEYCODE_DPAD_RIGHT

declare class KeyEvent {
static KEYCODE_DPAD_RIGHT: number;
}
  • Description

    Represents the Right arrow key on the D-pad.

KEYCODE_NUM_LOCK

declare class KeyEvent {
static KEYCODE_NUM_LOCK: number;
}
  • Description

    Represents the Num Lock key.

KEYCODE_NUMPAD_DIVIDE

declare class KeyEvent {
static KEYCODE_NUMPAD_DIVIDE: number;
}
  • Description

    Represents the Divide (/) key on the number pad.

KEYCODE_NUMPAD_MULTIPLY

declare class KeyEvent {
static KEYCODE_NUMPAD_MULTIPLY: number;
}
  • Description

    Represents the Multiply (*) key on the number pad.

KEYCODE_NUMPAD_SUBTRACT

declare class KeyEvent {
static KEYCODE_NUMPAD_SUBTRACT: number;
}
  • Description

    Represents the Subtract (-) key on the number pad.

KEYCODE_NUMPAD_ADD

declare class KeyEvent {
static KEYCODE_NUMPAD_ADD: number;
}
  • Description

    Represents the Add (+) key on the number pad.

KEYCODE_NUMPAD_DOT

declare class KeyEvent {
static KEYCODE_NUMPAD_DOT: number;
}
  • Description

    Represents the Decimal Point (.) key on the number pad.

Instance Method

getAction

declare class KeyEvent {
getAction():number;
}
  • Description

    Retrieve the action of this key event. May be either ACTION_DOWN ACTION_UP.

getKeyCode

declare class KeyEvent {
getKeyCode():number;
}
  • Description

    Retrieve the key code of the key event.

getMetaState

declare class KeyEvent {
getMetaState():number;
}
  • Description

    Returns the state of the meta keys.