KeyEvent

processing.event

## Class KeyEvent

- Object
- - Event
  - - KeyEvent

-     public class KeyEvent
      extends Event

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static int` | `PRESS`
    `static int` | `RELEASE`
    `static int` | `TYPE`

    - ### Fields inherited from class Event

      `ALT, CTRL, KEY, META, MOUSE, SHIFT, TOUCH`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyEvent(Object nativeObject, long millis, int action, int modifiers, char key, int keyCode)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `char` | `getKey()`
    `int` | `getKeyCode()`

    - ### Methods inherited from class Event

      `getAction, getFlavor, getMillis, getModifiers, getNative, isAltDown, isControlDown, isMetaDown, isShiftDown`

    - ### Methods inherited from class Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### PRESS

          public static final int PRESS

      See Also:
        Constant Field Values

    - #### RELEASE

          public static final int RELEASE

      See Also:
        Constant Field Values

    - #### TYPE

          public static final int TYPE

      See Also:
        Constant Field Values

  - ### Constructor Detail

    - #### KeyEvent

          public KeyEvent(Object nativeObject,
                  long millis,
                  int action,
                  int modifiers,
                  char key,
                  int keyCode)

  - ### Method Detail

    - #### getKey

          public char getKey()

    - #### getKeyCode

          public int getKeyCode()