Interface KeyEvent

All Known Subinterfaces:
KeyPressed, KeyReleased, KeyTyped

public interface KeyEvent
A common interface that all keyboard events must extend.
  • Method Details

    • keyCode

      KeyCode keyCode()
      Returns the code of the key.
    • keyModifiers

      KeyModifiers keyModifiers()
      Returns the keyboard modifiers applied.
    • keyLocation

      KeyLocation keyLocation()
      Returns the location of the key on the keyboard.