✒️
javaDraw
  • Home
  • Documentation
  • Guides
    • Installation and Setup
      • Replit
      • CodingRooms
    • Getting Started
    • Quickstart Examples
  • Quick Reference
    • Window
    • Key
Powered by GitBook
On this page

Was this helpful?

  1. Quick Reference

Key

Contains information relevant to a keyboard input.

The Key class allows for input comparisons to be as easy as possible.

Keys are supplied in the keyboard input methods on the Window class.

public void keyDown(Key key) {
    if (key == Key.SPACE) {
        print("Space key pressed!");
    }
}
PreviousWindow

Last updated 3 years ago

Was this helpful?