Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## lejos.devices
Interface KeyListener

    public interface KeyListener

This interface is for classes that wish to receive keyboard events.

Since:
  0.6
Author:
  BB
See Also:
  `Keyboard`, `KeyEvent`

Method Summary
`void` | `keyPressed(KeyEvent event)` This method is called when a key is pressed.
`void` | `keyReleased(KeyEvent event)` This method is called when a key is released.
`void` | `keyTyped(KeyEvent event)` This method is called when a key is typed.

Method Detail

### keyTyped

    void keyTyped(KeyEvent event)

  This method is called when a key is typed. A key is considered typed when it and all modifiers have been pressed and released, mapping to a single virtual key.

  Parameters:
    `event` - the `KeyEvent` indicating that a key was typed

### keyPressed

    void keyPressed(KeyEvent event)

  This method is called when a key is pressed.

  Parameters:
    `event` - the `KeyEvent` indicating the key press

### keyReleased

    void keyReleased(KeyEvent event)

  This method is called when a key is released.

  Parameters:
    `event` - the `KeyEvent` indicating the key release

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD