Enum Key | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Enum Key

    Enumeration of key codes.

    Namespace: UnityEngine.InputSystem
    Syntax
    public enum Key
    Remarks

    Named according to the US keyboard layout which is our reference layout.

    Fields

    Name Description
    A
    AltGr
    B
    Backquote
    Backslash
    Backspace
    C
    CapsLock
    Comma
    ContextMenu
    D
    Delete
    Digit0
    Digit1
    Digit2
    Digit3
    Digit4
    Digit5
    Digit6
    Digit7
    Digit8
    Digit9
    DownArrow
    E
    End
    Enter
    Equals
    Escape
    F
    F1
    F10
    F11
    F12
    F2
    F3
    F4
    F5
    F6
    F7
    F8
    F9
    G
    H
    Home
    I
    IMESelected
    Insert
    J
    K
    L
    LeftAlt
    LeftApple
    LeftArrow
    LeftBracket
    LeftCommand
    LeftCtrl
    LeftMeta
    LeftShift
    LeftWindows
    M
    Minus
    N
    None
    NumLock
    Numpad0
    Numpad1
    Numpad2
    Numpad3
    Numpad4
    Numpad5
    Numpad6
    Numpad7
    Numpad8
    Numpad9
    NumpadDivide
    NumpadEnter
    NumpadEquals
    NumpadMinus
    NumpadMultiply
    NumpadPeriod
    NumpadPlus
    O
    OEM1
    OEM2
    OEM3
    OEM4
    OEM5
    P
    PageDown
    PageUp
    Pause
    Period
    PrintScreen
    Q
    Quote
    R
    RightAlt
    RightApple
    RightArrow
    RightBracket
    RightCommand
    RightCtrl
    RightMeta
    RightShift
    RightWindows
    S
    ScrollLock
    Semicolon
    Slash
    Space
    T
    Tab
    U
    UpArrow
    V
    W
    X
    Y
    Z

    Extension Methods

    KeyboardExtensions.IsModifierKey()
    KeyboardExtensions.IsTextInputKey()
    Back to top Copyright © 2019 Unity Technologies
    Generated by DocFX