# Key ActionScript Class

This class implements an Key object.

## The Methods of the Class

addListener()

- Add a callback for key up and down events.

getAscii()

- Return the ASCII value of the key.

getCode()

- Return the key code of the key.

isDown()

- Returns true if the specified key is down.

isToggled()

- Returns true if the Num Lock key is on.

removeListener()

- Remove the event handler.

## The Properties of the Key Class

BACKSPACE

- A constant representing the backspace key.

CAPSLOCK

- A constant representing the Caps Lock key.

CONTROL

- A constant representing the Control key.

DELETEKEY

- A constant representing the Delete key.

DOWN

- A constant representing the Down arrow key.

END

- A constant representing the End key.

ENTER

- A constant representing the Enter key.

ESCAPE

- A constant representing the Escape key.

HOME

- A constant representing the Home key.

INSERT

- A constant representing the Insert key.

LEFT

- A constant representing the left arrow key.

PGDN

- A constant representing the Page Down key.

PGUP

- A constant representing the Page Up key.

RIGHT

- A constant representing the right arrow key.

SHIFT

- A constant representing the shift key.

SPACE

TAB

- A constant representing the space bar.

UP

- A constant representing the up arrow key.

## Key Class Event Handlers

onKeyDown

onKeyUp

## Key Class Conformance

Class Name | Conformance
addListener() | This method is implemented.
getAscii() | This method is implemented.
getCode() | This method is implemented.
isDown() | This method is implemented.
isToggled() | This method is implemented.
removeListener() | This method is implemented.
BACKSPACE | This constant is implemented.
CAPSLOCK | This constant is implemented.
CONTROL | This constant is implemented.
DELETEKEY | This constant is implemented.
DOWN | This constant is implemented.
END | This constant is implemented.
ENTER | This constant is implemented.
ESCAPE | This constant is implemented.
HOME | This constant is implemented.
INSERT | This constant is implemented.
LEFT | This constant is implemented.
onKeyDown | This constant is implemented.
onKeyUp | This constant is implemented.
PGDN | This constant is implemented.
PGUP | This constant is implemented.
RIGHT | This constant is implemented.
SHIFT | This constant is implemented.
SPACE | This constant is implemented.
TAB | This constant is implemented.
UP | This constant is implemented.