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

    The aKey.

    AltGr
    B

    The bKey.

    Backquote

    The backquoteKey.

    Backslash

    The backslashKey.

    Backspace
    C

    The cKey.

    CapsLock
    Comma

    The commaKey.

    ContextMenu
    D

    The dKey.

    Delete
    Digit0
    Digit1
    Digit2
    Digit3
    Digit4
    Digit5
    Digit6
    Digit7
    Digit8
    Digit9
    DownArrow
    E

    The eKey.

    End
    Enter

    The enterKey.

    Equals

    The equalsKey.

    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

    The leftBracketKey.

    LeftCommand
    LeftCtrl
    LeftMeta
    LeftShift
    LeftWindows
    M
    Minus

    The minusKey.

    N
    None

    Invalid key. Does not represent a key on the keyboard and is only used to have a default for the Key enumeration not represent any specific key.

    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

    The periodKey.

    PrintScreen
    Q
    Quote

    The quoteKey.

    R
    RightAlt
    RightApple
    RightArrow
    RightBracket

    The rightBracketKey.

    RightCommand
    RightCtrl
    RightMeta
    RightShift
    RightWindows
    S
    ScrollLock
    Semicolon

    The semicolonKey.

    Slash

    The slashKey.

    Space

    The spaceKey.

    T
    Tab

    The tabKey.

    U
    UpArrow
    V
    W
    X
    Y
    Z

    Extension Methods

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