Gleam - v1.0.2
    Preparing search index...

    Variable KEYBOARD_KEYSConst

    KEYBOARD_KEYS: {
        KEY_0: "Digit0";
        KEY_1: "Digit1";
        KEY_2: "Digit2";
        KEY_3: "Digit3";
        KEY_4: "Digit4";
        KEY_5: "Digit5";
        KEY_6: "Digit6";
        KEY_7: "Digit7";
        KEY_8: "Digit8";
        KEY_9: "Digit9";
        KEY_A: "KeyA";
        KEY_B: "KeyB";
        KEY_C: "KeyC";
        KEY_D: "KeyD";
        KEY_DOWN: "ArrowDown";
        KEY_E: "KeyE";
        KEY_ENTER: "Enter";
        KEY_ESCAPE: "Escape";
        KEY_F: "KeyF";
        KEY_G: "KeyG";
        KEY_H: "KeyH";
        KEY_I: "KeyI";
        KEY_J: "KeyJ";
        KEY_K: "KeyK";
        KEY_L: "KeyL";
        KEY_LEFT: "ArrowLeft";
        KEY_M: "KeyM";
        KEY_N: "KeyN";
        KEY_O: "KeyO";
        KEY_P: "KeyP";
        KEY_Q: "KeyQ";
        KEY_R: "KeyR";
        KEY_RIGHT: "ArrowRight";
        KEY_S: "KeyS";
        KEY_SPACE: "Space";
        KEY_T: "KeyT";
        KEY_TAB: "Tab";
        KEY_U: "KeyU";
        KEY_UP: "ArrowUp";
        KEY_V: "KeyV";
        KEY_W: "KeyW";
        KEY_X: "KeyX";
        KEY_Y: "KeyY";
        KEY_Z: "KeyZ";
    } = ...

    KeyboardEvent.code constants for the keys Gleam tracks by name. Use as the argument to Keyboard.isPressed / Keyboard.stopPress or as a string key into Keyboard.keys.

    Type Declaration

    • ReadonlyKEY_0: "Digit0"

      Digit row 0.

    • ReadonlyKEY_1: "Digit1"

      Digit row 1.

    • ReadonlyKEY_2: "Digit2"

      Digit row 2.

    • ReadonlyKEY_3: "Digit3"

      Digit row 3.

    • ReadonlyKEY_4: "Digit4"

      Digit row 4.

    • ReadonlyKEY_5: "Digit5"

      Digit row 5.

    • ReadonlyKEY_6: "Digit6"

      Digit row 6.

    • ReadonlyKEY_7: "Digit7"

      Digit row 7.

    • ReadonlyKEY_8: "Digit8"

      Digit row 8.

    • ReadonlyKEY_9: "Digit9"

      Digit row 9.

    • ReadonlyKEY_A: "KeyA"

      Letter A.

    • ReadonlyKEY_B: "KeyB"

      Letter B.

    • ReadonlyKEY_C: "KeyC"

      Letter C.

    • ReadonlyKEY_D: "KeyD"

      Letter D.

    • ReadonlyKEY_DOWN: "ArrowDown"

      Down arrow.

    • ReadonlyKEY_E: "KeyE"

      Letter E.

    • ReadonlyKEY_ENTER: "Enter"

      Enter / Return.

    • ReadonlyKEY_ESCAPE: "Escape"

      Escape. Note: in Settings.debug mode this stops the gameloop.

    • ReadonlyKEY_F: "KeyF"

      Letter F.

    • ReadonlyKEY_G: "KeyG"

      Letter G.

    • ReadonlyKEY_H: "KeyH"

      Letter H.

    • ReadonlyKEY_I: "KeyI"

      Letter I.

    • ReadonlyKEY_J: "KeyJ"

      Letter J.

    • ReadonlyKEY_K: "KeyK"

      Letter K.

    • ReadonlyKEY_L: "KeyL"

      Letter L.

    • ReadonlyKEY_LEFT: "ArrowLeft"

      Left arrow.

    • ReadonlyKEY_M: "KeyM"

      Letter M.

    • ReadonlyKEY_N: "KeyN"

      Letter N.

    • ReadonlyKEY_O: "KeyO"

      Letter O.

    • ReadonlyKEY_P: "KeyP"

      Letter P.

    • ReadonlyKEY_Q: "KeyQ"

      Letter Q.

    • ReadonlyKEY_R: "KeyR"

      Letter R.

    • ReadonlyKEY_RIGHT: "ArrowRight"

      Right arrow.

    • ReadonlyKEY_S: "KeyS"

      Letter S.

    • ReadonlyKEY_SPACE: "Space"

      Space bar.

    • ReadonlyKEY_T: "KeyT"

      Letter T.

    • ReadonlyKEY_TAB: "Tab"

      Tab.

    • ReadonlyKEY_U: "KeyU"

      Letter U.

    • ReadonlyKEY_UP: "ArrowUp"

      Up arrow.

    • ReadonlyKEY_V: "KeyV"

      Letter V.

    • ReadonlyKEY_W: "KeyW"

      Letter W.

    • ReadonlyKEY_X: "KeyX"

      Letter X.

    • ReadonlyKEY_Y: "KeyY"

      Letter Y.

    • ReadonlyKEY_Z: "KeyZ"

      Letter Z.