Class

Key

Represents keys on a keyboard.

Source set: Common
expect value class Key(val keyCode: Long)

Represents keys on a keyboard.

Parameters

keyCode a Long value representing the key pressed. Note: This keycode can be used to uniquely identify a hardware key. It is different from the native keycode.

Companion Object

Properties

Source set: Common
val Unknown: Key

Unknown key.

Source set: Common
val SoftLeft: Key

Soft Left key.

Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom left of the display.

Source set: Common
val SoftRight: Key

Soft Right key.

Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom right of the display.

Deprecated

Key.Home is never delivered to applications. For the keyboard \"Home\" key use Key.MoveHome. For the system \"Home\" key (unlikely to be needed), use Key.SystemHome

Source set: Common
val Home: Key

System Home key.

This key is handled by the framework and is never delivered to applications.

Source set: Common
val SystemHome: Key

System Home key.

This key is handled by the framework and is never delivered to applications.

Source set: Common
val Back: Key

Back key.

Source set: Common
val Help: Key

Help key.

Source set: Common
val NavigatePrevious: Key

Navigate to previous key.

Goes backward by one item in an ordered collection of items.

Source set: Common
val NavigateNext: Key

Navigate to next key.

Advances to the next item in an ordered collection of items.

Source set: Common
val NavigateIn: Key

Navigate in key.

Activates the item that currently has focus or expands to the next level of a navigation hierarchy.

Source set: Common
val NavigateOut: Key

Navigate out key.

Backs out one level of a navigation hierarchy or collapses the item that currently has focus.

Source set: Common
val SystemNavigationUp: Key

Consumed by the system for navigation up.

Source set: Common
val SystemNavigationDown: Key

Consumed by the system for navigation down.

Source set: Common
val SystemNavigationLeft: Key

Consumed by the system for navigation left.

Source set: Common
val SystemNavigationRight: Key

Consumed by the system for navigation right.

Source set: Common
val Call: Key

Call key.

Source set: Common
val EndCall: Key

End Call key.

Source set: Common
val DirectionUp: Key

Up Arrow Key / Directional Pad Up key.

May also be synthesized from trackball motions.

Source set: Common
val DirectionDown: Key

Down Arrow Key / Directional Pad Down key.

May also be synthesized from trackball motions.

Source set: Common
val DirectionLeft: Key

Left Arrow Key / Directional Pad Left key.

May also be synthesized from trackball motions.

Source set: Common
val DirectionRight: Key

Right Arrow Key / Directional Pad Right key.

May also be synthesized from trackball motions.

Source set: Common
val DirectionCenter: Key

Center Arrow Key / Directional Pad Center key.

May also be synthesized from trackball motions.

Source set: Common
val DirectionUpLeft: Key

Directional Pad Up-Left.

Source set: Common
val DirectionDownLeft: Key

Directional Pad Down-Left.

Source set: Common
val DirectionUpRight: Key

Directional Pad Up-Right.

Source set: Common
val DirectionDownRight: Key

Directional Pad Down-Right.

Source set: Common
val VolumeUp: Key

Volume Up key.

Adjusts the speaker volume up.

Source set: Common
val VolumeDown: Key

Volume Down key.

Adjusts the speaker volume down.

Source set: Common
val Power: Key

Power key.

Source set: Common
val Camera: Key

Camera key.

Used to launch a camera application or take pictures.

Source set: Common
val Clear: Key

Clear key.

Source set: Common
val Zero: Key

'0' key.

Source set: Common
val One: Key

'1' key.

Source set: Common
val Two: Key

'2' key.

Source set: Common
val Three: Key

'3' key.

Source set: Common
val Four: Key

'4' key.

Source set: Common
val Five: Key

'5' key.

Source set: Common
val Six: Key

'6' key.

Source set: Common
val Seven: Key

'7' key.

Source set: Common
val Eight: Key

'8' key.

Source set: Common
val Nine: Key

'9' key.

Source set: Common
val Plus: Key

'+' key.

Source set: Common
val Minus: Key

'-' key.

Source set: Common
val Multiply: Key

'*' key.

Source set: Common
val Equals: Key

'=' key.

Source set: Common
val Pound: Key

'#' key.

Source set: Common
val A: Key

'A' key.

Source set: Common
val B: Key

'B' key.

Source set: Common
val C: Key

'C' key.

Source set: Common
val D: Key

'D' key.

Source set: Common
val E: Key

'E' key.

Source set: Common
val F: Key

'F' key.

Source set: Common
val G: Key

'G' key.

Source set: Common
val H: Key

'H' key.

Source set: Common
val I: Key

'I' key.

Source set: Common
val J: Key

'J' key.

Source set: Common
val K: Key

'K' key.

Source set: Common
val L: Key

'L' key.

Source set: Common
val M: Key

'M' key.

Source set: Common
val N: Key

'N' key.

Source set: Common
val O: Key

'O' key.

Source set: Common
val P: Key

'P' key.

Source set: Common
val Q: Key

'Q' key.

Source set: Common
val R: Key

'R' key.

Source set: Common
val S: Key

'S' key.

Source set: Common
val T: Key

'T' key.

Source set: Common
val U: Key

'U' key.

Source set: Common
val V: Key

'V' key.

Source set: Common
val W: Key

'W' key.

Source set: Common
val X: Key

'X' key.

Source set: Common
val Y: Key

'Y' key.

Source set: Common
val Z: Key

'Z' key.

Source set: Common
val Comma: Key

',' key.

Source set: Common
val Period: Key

'.' key.

Source set: Common
val AltLeft: Key

Left Alt modifier key.

Source set: Common
val AltRight: Key

Right Alt modifier key.

Source set: Common
val ShiftLeft: Key

Left Shift modifier key.

Source set: Common
val ShiftRight: Key

Right Shift modifier key.

Source set: Common
val Tab: Key

Tab key.

Source set: Common
val Spacebar: Key

Space key.

Source set: Common
val Symbol: Key

Symbol modifier key.

Used to enter alternate symbols.

Source set: Common
val Browser: Key

Browser special function key.

Used to launch a browser application.

Source set: Common
val Envelope: Key

Envelope special function key.

Used to launch a mail application.

Source set: Common
val Enter: Key

Enter key.

Source set: Common
val Backspace: Key

Backspace key.

Deletes characters before the insertion point, unlike Delete.

Source set: Common
val Delete: Key

Delete key.

Deletes characters ahead of the insertion point, unlike Backspace.

Source set: Common
val Escape: Key

Escape key.

Source set: Common
val CtrlLeft: Key

Left Control modifier key.

Source set: Common
val CtrlRight: Key

Right Control modifier key.

Source set: Common
val CapsLock: Key

Caps Lock key.

Source set: Common
val ScrollLock: Key

Scroll Lock key.

Source set: Common
val MetaLeft: Key

Left Meta modifier key.

Source set: Common
val MetaRight: Key

Right Meta modifier key.

Source set: Common
val Function: Key

Function modifier key.

Source set: Common
val PrintScreen: Key

System Request / Print Screen key.

Source set: Common
val Break: Key

Break / Pause key.

Source set: Common
val MoveHome: Key

Home Movement key.

Used for scrolling or moving the cursor around to the start of a line or to the top of a list.

Source set: Common
val MoveEnd: Key

End Movement key.

Used for scrolling or moving the cursor around to the end of a line or to the bottom of a list.

Source set: Common
val Insert: Key

Insert key.

Toggles insert / overwrite edit mode.

Source set: Common
val Cut: Key

Cut key.

Source set: Common
val Copy: Key

Copy key.

Source set: Common
val Paste: Key

Paste key.

Source set: Common
val Grave: Key

'`' (backtick) key.

Source set: Common
val LeftBracket: Key

'[' key.

Source set: Common
val RightBracket: Key

']' key.

Source set: Common
val Slash: Key

'/' key.

Source set: Common
val Backslash: Key

'\' key.

Source set: Common
val Semicolon: Key

';' key.

Source set: Common
val Apostrophe: Key

''' (apostrophe) key.

Source set: Common
val At: Key

'@' key.

Source set: Common
val Number: Key

Number modifier key.

Used to enter numeric symbols. This key is not Num Lock; it is more like AltLeft.

Source set: Common
val HeadsetHook: Key

Headset Hook key.

Used to hang up calls and stop media.

Source set: Common
val Focus: Key

Camera Focus key.

Used to focus the camera.

Source set: Common
val Menu: Key

Menu key.

Source set: Common
val Notification: Key

Notification key.

Source set: Common
val Search: Key

Search key.

Source set: Common
val PageUp: Key

Page Up key.

Source set: Common
val PageDown: Key

Page Down key.

Source set: Common
val PictureSymbols: Key

Picture Symbols modifier key.

Used to switch symbol sets (Emoji, Kao-moji).

Source set: Common
val SwitchCharset: Key

Switch Charset modifier key.

Used to switch character sets (Kanji, Katakana).

Source set: Common
val ButtonA: Key

A Button key.

On a game controller, the A button should be either the button labeled A or the first button on the bottom row of controller buttons.

Source set: Common
val ButtonB: Key

B Button key.

On a game controller, the B button should be either the button labeled B or the second button on the bottom row of controller buttons.

Source set: Common
val ButtonC: Key

C Button key.

On a game controller, the C button should be either the button labeled C or the third button on the bottom row of controller buttons.

Source set: Common
val ButtonX: Key

X Button key.

On a game controller, the X button should be either the button labeled X or the first button on the upper row of controller buttons.

Source set: Common
val ButtonY: Key

Y Button key.

On a game controller, the Y button should be either the button labeled Y or the second button on the upper row of controller buttons.

Source set: Common
val ButtonZ: Key

Z Button key.

On a game controller, the Z button should be either the button labeled Z or the third button on the upper row of controller buttons.

Source set: Common
val ButtonL1: Key

L1 Button key.

On a game controller, the L1 button should be either the button labeled L1 (or L) or the top left trigger button.

Source set: Common
val ButtonR1: Key

R1 Button key.

On a game controller, the R1 button should be either the button labeled R1 (or R) or the top right trigger button.

Source set: Common
val ButtonL2: Key

L2 Button key.

On a game controller, the L2 button should be either the button labeled L2 or the bottom left trigger button.

Source set: Common
val ButtonR2: Key

R2 Button key.

On a game controller, the R2 button should be either the button labeled R2 or the bottom right trigger button.

Source set: Common
val ButtonThumbLeft: Key

Left Thumb Button key.

On a game controller, the left thumb button indicates that the left (or only) joystick is pressed.

Source set: Common
val ButtonThumbRight: Key

Right Thumb Button key.

On a game controller, the right thumb button indicates that the right joystick is pressed.

Source set: Common
val ButtonStart: Key

Start Button key.

On a game controller, the button labeled Start.

Source set: Common
val ButtonSelect: Key

Select Button key.

On a game controller, the button labeled Select.

Source set: Common
val ButtonMode: Key

Mode Button key.

On a game controller, the button labeled Mode.

Source set: Common
val Button1: Key

Generic Game Pad Button #1.

Source set: Common
val Button2: Key

Generic Game Pad Button #2.

Source set: Common
val Button3: Key

Generic Game Pad Button #3.

Source set: Common
val Button4: Key

Generic Game Pad Button #4.

Source set: Common
val Button5: Key

Generic Game Pad Button #5.

Source set: Common
val Button6: Key

Generic Game Pad Button #6.

Source set: Common
val Button7: Key

Generic Game Pad Button #7.

Source set: Common
val Button8: Key

Generic Game Pad Button #8.

Source set: Common
val Button9: Key

Generic Game Pad Button #9.

Source set: Common
val Button10: Key

Generic Game Pad Button #10.

Source set: Common
val Button11: Key

Generic Game Pad Button #11.

Source set: Common
val Button12: Key

Generic Game Pad Button #12.

Source set: Common
val Button13: Key

Generic Game Pad Button #13.

Source set: Common
val Button14: Key

Generic Game Pad Button #14.

Source set: Common
val Button15: Key

Generic Game Pad Button #15.

Source set: Common
val Button16: Key

Generic Game Pad Button #16.

Source set: Common
val Forward: Key

Forward key.

Navigates forward in the history stack. Complement of Back.

Source set: Common
val F1: Key

F1 key.

Source set: Common
val F2: Key

F2 key.

Source set: Common
val F3: Key

F3 key.

Source set: Common
val F4: Key

F4 key.

Source set: Common
val F5: Key

F5 key.

Source set: Common
val F6: Key

F6 key.

Source set: Common
val F7: Key

F7 key.

Source set: Common
val F8: Key

F8 key.

Source set: Common
val F9: Key

F9 key.

Source set: Common
val F10: Key

F10 key.

Source set: Common
val F11: Key

F11 key.

Source set: Common
val F12: Key

F12 key.

Source set: Common
val NumLock: Key

Num Lock key.

This is the Num Lock key; it is different from Number. This key alters the behavior of other keys on the numeric keypad.

Source set: Common
val NumPad0: Key

Numeric keypad '0' key.

Source set: Common
val NumPad1: Key

Numeric keypad '1' key.

Source set: Common
val NumPad2: Key

Numeric keypad '2' key.

Source set: Common
val NumPad3: Key

Numeric keypad '3' key.

Source set: Common
val NumPad4: Key

Numeric keypad '4' key.

Source set: Common
val NumPad5: Key

Numeric keypad '5' key.

Source set: Common
val NumPad6: Key

Numeric keypad '6' key.

Source set: Common
val NumPad7: Key

Numeric keypad '7' key.

Source set: Common
val NumPad8: Key

Numeric keypad '8' key.

Source set: Common
val NumPad9: Key

Numeric keypad '9' key.

Source set: Common
val NumPadDivide: Key

Numeric keypad '/' key (for division).

Source set: Common
val NumPadMultiply: Key

Numeric keypad '*' key (for multiplication).

Source set: Common
val NumPadSubtract: Key

Numeric keypad '-' key (for subtraction).

Source set: Common
val NumPadAdd: Key

Numeric keypad '+' key (for addition).

Source set: Common
val NumPadDot: Key

Numeric keypad '.' key (for decimals or digit grouping).

Source set: Common
val NumPadComma: Key

Numeric keypad ',' key (for decimals or digit grouping).

Source set: Common
val NumPadEnter: Key

Numeric keypad Enter key.

Source set: Common
val NumPadEquals: Key

Numeric keypad '=' key.

Source set: Common
val NumPadLeftParenthesis: Key

Numeric keypad '(' key.

Source set: Common
val NumPadRightParenthesis: Key

Numeric keypad ')' key.

Source set: Common
val NumPadDirectionUp: Key

Numeric keypad Up Arrow Key.

Source set: Common
val NumPadDirectionDown: Key

Numeric keypad Down Arrow Key.

Source set: Common
val NumPadDirectionLeft: Key

Numeric keypad Left Arrow Key.

Source set: Common
val NumPadDirectionRight: Key

Numeric keypad Right Arrow Key.

Source set: Common
val NumPadMoveHome: Key

Numeric keypad Home Key.

Source set: Common
val NumPadMoveEnd: Key

Numeric keypad End Key.

Source set: Common
val NumPadPageUp: Key

Numeric keypad Page Up Key.

Source set: Common
val NumPadPageDown: Key

Numeric keypad Page Down Key.

Source set: Common
val NumPadInsert: Key

Numeric keypad Insert Key.

Source set: Common
val NumPadDelete: Key

Numeric keypad Delete Key.

Source set: Common
val MediaPlay: Key

Play media key.

Source set: Common
val MediaPause: Key

Pause media key.

Source set: Common
val MediaPlayPause: Key

Play/Pause media key.

Source set: Common
val MediaStop: Key

Stop media key.

Source set: Common
val MediaRecord: Key

Record media key.

Source set: Common
val MediaNext: Key

Play Next media key.

Source set: Common
val MediaPrevious: Key

Play Previous media key.

Source set: Common
val MediaRewind: Key

Rewind media key.

Source set: Common
val MediaFastForward: Key

Fast Forward media key.

Source set: Common
val MediaClose: Key

Close media key.

May be used to close a CD tray, for example.

Source set: Common
val MediaAudioTrack: Key

Audio Track key.

Switches the audio tracks.

Source set: Common
val MediaEject: Key

Eject media key.

May be used to eject a CD tray, for example.

Source set: Common
val MediaTopMenu: Key

Media Top Menu key.

Goes to the top of media menu.

Source set: Common
val MediaSkipForward: Key

Skip forward media key.

Source set: Common
val MediaSkipBackward: Key

Skip backward media key.

Source set: Common
val MediaStepForward: Key

Step forward media key.

Steps media forward, one frame at a time.

Source set: Common
val MediaStepBackward: Key

Step backward media key.

Steps media backward, one frame at a time.

Source set: Common
val MicrophoneMute: Key

Mute key.

Mutes the microphone, unlike VolumeMute.

Source set: Common
val VolumeMute: Key

Volume Mute key.

Mutes the speaker, unlike MicrophoneMute.

This key should normally be implemented as a toggle such that the first press mutes the speaker and the second press restores the original volume.

Source set: Common
val Info: Key

Info key.

Common on TV remotes to show additional information related to what is currently being viewed.

Source set: Common
val ChannelUp: Key

Channel up key.

On TV remotes, increments the television channel.

Source set: Common
val ChannelDown: Key

Channel down key.

On TV remotes, decrements the television channel.

Source set: Common
val ZoomIn: Key

Zoom in key.

Source set: Common
val ZoomOut: Key

Zoom out key.

Source set: Common
val Tv: Key

TV key.

On TV remotes, switches to viewing live TV.

Source set: Common
val Window: Key

Window key.

On TV remotes, toggles picture-in-picture mode or other windowing functions. On Android Wear devices, triggers a display offset.

Source set: Common
val Guide: Key

Guide key.

On TV remotes, shows a programming guide.

Source set: Common
val Dvr: Key

DVR key.

On some TV remotes, switches to a DVR mode for recorded shows.

Source set: Common
val Bookmark: Key

Bookmark key.

On some TV remotes, bookmarks content or web pages.

Source set: Common
val Captions: Key

Toggle captions key.

Switches the mode for closed-captioning text, for example during television shows.

Source set: Common
val Settings: Key

Settings key.

Starts the system settings activity.

Source set: Common
val TvPower: Key

TV power key.

On TV remotes, toggles the power on a television screen.

Source set: Common
val TvInput: Key

TV input key.

On TV remotes, switches the input on a television screen.

Source set: Common
val SetTopBoxPower: Key

Set-top-box power key.

On TV remotes, toggles the power on an external Set-top-box.

Source set: Common
val SetTopBoxInput: Key

Set-top-box input key.

On TV remotes, switches the input mode on an external Set-top-box.

Source set: Common
val AvReceiverPower: Key

A/V Receiver power key.

On TV remotes, toggles the power on an external A/V Receiver.

Source set: Common
val AvReceiverInput: Key

A/V Receiver input key.

On TV remotes, switches the input mode on an external A/V Receiver.

Source set: Common
val ProgramRed: Key

Red "programmable" key.

On TV remotes, acts as a contextual/programmable key.

Source set: Common
val ProgramGreen: Key

Green "programmable" key.

On TV remotes, acts as a contextual/programmable key.

Source set: Common
val ProgramYellow: Key

Yellow "programmable" key.

On TV remotes, acts as a contextual/programmable key.

Source set: Common
val ProgramBlue: Key

Blue "programmable" key.

On TV remotes, acts as a contextual/programmable key.

Source set: Common
val AppSwitch: Key

App switch key.

Should bring up the application switcher dialog.

Source set: Common
val LanguageSwitch: Key

Language Switch key.

Toggles the current input language such as switching between English and Japanese on a QWERTY keyboard. On some devices, the same function may be performed by pressing Shift+Space.

Source set: Common
val MannerMode: Key

Manner Mode key.

Toggles silent or vibrate mode on and off to make the device behave more politely in certain settings such as on a crowded train. On some devices, the key may only operate when long-pressed.

Source set: Common
val Toggle2D3D: Key

3D Mode key.

Toggles the display between 2D and 3D mode.

Source set: Common
val Contacts: Key

Contacts special function key.

Used to launch an address book application.

Source set: Common
val Calendar: Key

Calendar special function key.

Used to launch a calendar application.

Source set: Common
val Music: Key

Music special function key.

Used to launch a music player application.

Source set: Common
val Calculator: Key

Calculator special function key.

Used to launch a calculator application.

Source set: Common
val ZenkakuHankaru: Key

Japanese full-width / half-width key.

Source set: Common
val Eisu: Key

Japanese alphanumeric key.

Source set: Common
val Muhenkan: Key

Japanese non-conversion key.

Source set: Common
val Henkan: Key

Japanese conversion key.

Source set: Common
val KatakanaHiragana: Key

Japanese katakana / hiragana key.

Source set: Common
val Yen: Key

Japanese Yen key.

Source set: Common
val Ro: Key

Japanese Ro key.

Source set: Common
val Kana: Key

Japanese kana key.

Source set: Common
val Assist: Key

Assist key.

Launches the global assist activity. Not delivered to applications.

Source set: Common
val BrightnessDown: Key

Brightness Down key.

Adjusts the screen brightness down.

Source set: Common
val BrightnessUp: Key

Brightness Up key.

Adjusts the screen brightness up.

Source set: Common
val Sleep: Key

Sleep key.

Puts the device to sleep. Behaves somewhat like Power but it has no effect if the device is already asleep.

Source set: Common
val WakeUp: Key

Wakeup key.

Wakes up the device. Behaves somewhat like Power but it has no effect if the device is already awake.

Source set: Common
val SoftSleep: Key

Put device to sleep unless a wakelock is held.

Source set: Common
val Pairing: Key

Pairing key.

Initiates peripheral pairing mode. Useful for pairing remote control devices or game controllers, especially if no other input mode is available.

Source set: Common
val LastChannel: Key

Last Channel key.

Goes to the last viewed channel.

Source set: Common
val TvDataService: Key

TV data service key.

Displays data services like weather, sports.

Source set: Common
val VoiceAssist: Key

Voice Assist key.

Launches the global voice assist activity. Not delivered to applications.

Source set: Common
val TvRadioService: Key

Radio key.

Toggles TV service / Radio service.

Source set: Common
val TvTeletext: Key

Teletext key.

Displays Teletext service.

Source set: Common
val TvNumberEntry: Key

Number entry key.

Initiates to enter multi-digit channel number when each digit key is assigned for selecting separate channel. Corresponds to Number Entry Mode (0x1D) of CEC User Control Code.

Source set: Common
val TvTerrestrialAnalog: Key

Analog Terrestrial key.

Switches to analog terrestrial broadcast service.

Source set: Common
val TvTerrestrialDigital: Key

Digital Terrestrial key.

Switches to digital terrestrial broadcast service.

Source set: Common
val TvSatellite: Key

Satellite key.

Switches to digital satellite broadcast service.

Source set: Common
val TvSatelliteBs: Key

BS key.

Switches to BS digital satellite broadcasting service available in Japan.

Source set: Common
val TvSatelliteCs: Key

CS key.

Switches to CS digital satellite broadcasting service available in Japan.

Source set: Common
val TvSatelliteService: Key

BS/CS key.

Toggles between BS and CS digital satellite services.

Source set: Common
val TvNetwork: Key

Toggle Network key.

Toggles selecting broadcast services.

Source set: Common
val TvAntennaCable: Key

Antenna/Cable key.

Toggles broadcast input source between antenna and cable.

Source set: Common
val TvInputHdmi1: Key

HDMI #1 key.

Switches to HDMI input #1.

Source set: Common
val TvInputHdmi2: Key

HDMI #2 key.

Switches to HDMI input #2.

Source set: Common
val TvInputHdmi3: Key

HDMI #3 key.

Switches to HDMI input #3.

Source set: Common
val TvInputHdmi4: Key

HDMI #4 key.

Switches to HDMI input #4.

Source set: Common
val TvInputComposite1: Key

Composite #1 key.

Switches to composite video input #1.

Source set: Common
val TvInputComposite2: Key

Composite #2 key.

Switches to composite video input #2.

Source set: Common
val TvInputComponent1: Key

Component #1 key.

Switches to component video input #1.

Source set: Common
val TvInputComponent2: Key

Component #2 key.

Switches to component video input #2.

Source set: Common
val TvInputVga1: Key

VGA #1 key.

Switches to VGA (analog RGB) input #1.

Source set: Common
val TvAudioDescription: Key

Audio description key.

Toggles audio description off / on.

Source set: Common
val TvAudioDescriptionMixingVolumeUp: Key

Audio description mixing volume up key.

Increase the audio description volume as compared with normal audio volume.

Source set: Common
val TvAudioDescriptionMixingVolumeDown: Key

Audio description mixing volume down key.

Lessen audio description volume as compared with normal audio volume.

Source set: Common
val TvZoomMode: Key

Zoom mode key.

Changes Zoom mode (Normal, Full, Zoom, Wide-zoom, etc.)

Source set: Common
val TvContentsMenu: Key

Contents menu key.

Goes to the title list. Corresponds to Contents Menu (0x0B) of CEC User Control Code

Source set: Common
val TvMediaContextMenu: Key

Media context menu key.

Goes to the context menu of media contents. Corresponds to Media Context-sensitive Menu (0x11) of CEC User Control Code.

Source set: Common
val TvTimerProgramming: Key

Timer programming key.

Goes to the timer recording menu. Corresponds to Timer Programming (0x54) of CEC User Control Code.

Source set: Common
val StemPrimary: Key

Primary stem key for Wearables.

Main power/reset button.

Source set: Common
val Stem1: Key

Generic stem key 1 for Wearables.

Source set: Common
val Stem2: Key

Generic stem key 2 for Wearables.

Source set: Common
val Stem3: Key

Generic stem key 3 for Wearables.

Source set: Common
val AllApps: Key

Show all apps.

Source set: Common
val Refresh: Key

Refresh key.

Source set: Common
val ThumbsUp: Key

Thumbs up key. Apps can use this to let user up-vote content.

Source set: Common
val ThumbsDown: Key

Thumbs down key. Apps can use this to let user down-vote content.

Source set: Common
val ProfileSwitch: Key

Used to switch current [account]android.accounts.Account that is consuming content. May be consumed by system to set account globally.

Source set: Android
actual value class Key(val keyCode: Long)

Actual implementation of Key for Android.

Parameters

keyCode an integer code representing the key pressed.

Companion Object

Properties

Source set: Android
actual val Unknown = Key(KeyEvent.KEYCODE_UNKNOWN)

Unknown key.

Source set: Android
actual val SoftLeft = Key(KeyEvent.KEYCODE_SOFT_LEFT)

Soft Left key.

Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom left of the display.

Source set: Android
actual val SoftRight = Key(KeyEvent.KEYCODE_SOFT_RIGHT)

Soft Right key.

Usually situated below the display on phones and used as a multi-function feature key for selecting a software defined function shown on the bottom right of the display.

Deprecated

Key.Home is never delivered to applications. For the keyboard \"Home\" key use Key.MoveHome. For the system \"Home\" key (unlikely to be needed), use Key.SystemHome

Source set: Android
actual val Home = Key(KeyEvent.KEYCODE_HOME)

System Home key.

This key is handled by the framework and is never delivered to applications.

Source set: Android
actual val SystemHome = Key(KeyEvent.KEYCODE_HOME)

System Home key.

This key is handled by the framework and is never delivered to applications.

Source set: Android
actual val Back = Key(KeyEvent.KEYCODE_BACK)

Back key.

Source set: Android
actual val Help = Key(KeyEvent.KEYCODE_HELP)

Help key.

Source set: Android
actual val NavigatePrevious = Key(KeyEvent.KEYCODE_NAVIGATE_PREVIOUS)

Navigate to previous key.

Goes backward by one item in an ordered collection of items.

Source set: Android
actual val NavigateNext = Key(KeyEvent.KEYCODE_NAVIGATE_NEXT)

Navigate to next key.

Advances to the next item in an ordered collection of items.

Source set: Android
actual val NavigateIn = Key(KeyEvent.KEYCODE_NAVIGATE_IN)

Navigate in key.

Activates the item that currently has focus or expands to the next level of a navigation hierarchy.

Source set: Android
actual val NavigateOut = Key(KeyEvent.KEYCODE_NAVIGATE_OUT)

Navigate out key.

Backs out one level of a navigation hierarchy or collapses the item that currently has focus.

Source set: Android
actual val SystemNavigationUp = Key(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_UP)

Consumed by the system for navigation up.

Source set: Android
actual val SystemNavigationDown = Key(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_DOWN)

Consumed by the system for navigation down.

Source set: Android
actual val SystemNavigationLeft = Key(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_LEFT)

Consumed by the system for navigation left.

Source set: Android
actual val SystemNavigationRight = Key(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_RIGHT)

Consumed by the system for navigation right.

Source set: Android
actual val Call = Key(KeyEvent.KEYCODE_CALL)

Call key.

Source set: Android
actual val EndCall = Key(KeyEvent.KEYCODE_ENDCALL)

End Call key.

Source set: Android
actual val DirectionUp = Key(KeyEvent.KEYCODE_DPAD_UP)

Up Arrow Key / Directional Pad Up key.

May also be synthesized from trackball motions.

Source set: Android
actual val DirectionDown = Key(KeyEvent.KEYCODE_DPAD_DOWN)

Down Arrow Key / Directional Pad Down key.

May also be synthesized from trackball motions.

Source set: Android
actual val DirectionLeft = Key(KeyEvent.KEYCODE_DPAD_LEFT)

Left Arrow Key / Directional Pad Left key.

May also be synthesized from trackball motions.

Source set: Android
actual val DirectionRight = Key(KeyEvent.KEYCODE_DPAD_RIGHT)

Right Arrow Key / Directional Pad Right key.

May also be synthesized from trackball motions.

Source set: Android
actual val DirectionCenter = Key(KeyEvent.KEYCODE_DPAD_CENTER)

Center Arrow Key / Directional Pad Center key.

May also be synthesized from trackball motions.

Source set: Android
actual val DirectionUpLeft = Key(KeyEvent.KEYCODE_DPAD_UP_LEFT)

Directional Pad Up-Left.

Source set: Android
actual val DirectionDownLeft = Key(KeyEvent.KEYCODE_DPAD_DOWN_LEFT)

Directional Pad Down-Left.

Source set: Android
actual val DirectionUpRight = Key(KeyEvent.KEYCODE_DPAD_UP_RIGHT)

Directional Pad Up-Right.

Source set: Android
actual val DirectionDownRight = Key(KeyEvent.KEYCODE_DPAD_DOWN_RIGHT)

Directional Pad Down-Right.

Source set: Android
actual val VolumeUp = Key(KeyEvent.KEYCODE_VOLUME_UP)

Volume Up key.

Adjusts the speaker volume up.

Source set: Android
actual val VolumeDown = Key(KeyEvent.KEYCODE_VOLUME_DOWN)

Volume Down key.

Adjusts the speaker volume down.

Source set: Android
actual val Power = Key(KeyEvent.KEYCODE_POWER)

Power key.

Source set: Android
actual val Camera = Key(KeyEvent.KEYCODE_CAMERA)

Camera key.

Used to launch a camera application or take pictures.

Source set: Android
actual val Clear = Key(KeyEvent.KEYCODE_CLEAR)

Clear key.

Source set: Android
actual val Zero = Key(KeyEvent.KEYCODE_0)

'0' key.

Source set: Android
actual val One = Key(KeyEvent.KEYCODE_1)

'1' key.

Source set: Android
actual val Two = Key(KeyEvent.KEYCODE_2)

'2' key.

Source set: Android
actual val Three = Key(KeyEvent.KEYCODE_3)

'3' key.

Source set: Android
actual val Four = Key(KeyEvent.KEYCODE_4)

'4' key.

Source set: Android
actual val Five = Key(KeyEvent.KEYCODE_5)

'5' key.

Source set: Android
actual val Six = Key(KeyEvent.KEYCODE_6)

'6' key.

Source set: Android
actual val Seven = Key(KeyEvent.KEYCODE_7)

'7' key.

Source set: Android
actual val Eight = Key(KeyEvent.KEYCODE_8)

'8' key.

Source set: Android
actual val Nine = Key(KeyEvent.KEYCODE_9)

'9' key.

Source set: Android
actual val Plus = Key(KeyEvent.KEYCODE_PLUS)

'+' key.

Source set: Android
actual val Minus = Key(KeyEvent.KEYCODE_MINUS)

'-' key.

Source set: Android
actual val Multiply = Key(KeyEvent.KEYCODE_STAR)

'*' key.

Source set: Android
actual val Equals = Key(KeyEvent.KEYCODE_EQUALS)

'=' key.

Source set: Android
actual val Pound = Key(KeyEvent.KEYCODE_POUND)

'#' key.

Source set: Android
actual val A = Key(KeyEvent.KEYCODE_A)

'A' key.

Source set: Android
actual val B = Key(KeyEvent.KEYCODE_B)

'B' key.

Source set: Android
actual val C = Key(KeyEvent.KEYCODE_C)

'C' key.

Source set: Android
actual val D = Key(KeyEvent.KEYCODE_D)

'D' key.

Source set: Android
actual val E = Key(KeyEvent.KEYCODE_E)

'E' key.

Source set: Android
actual val F = Key(KeyEvent.KEYCODE_F)

'F' key.

Source set: Android
actual val G = Key(KeyEvent.KEYCODE_G)

'G' key.

Source set: Android
actual val H = Key(KeyEvent.KEYCODE_H)

'H' key.

Source set: Android
actual val I = Key(KeyEvent.KEYCODE_I)

'I' key.

Source set: Android
actual val J = Key(KeyEvent.KEYCODE_J)

'J' key.

Source set: Android
actual val K = Key(KeyEvent.KEYCODE_K)

'K' key.

Source set: Android
actual val L = Key(KeyEvent.KEYCODE_L)

'L' key.

Source set: Android
actual val M = Key(KeyEvent.KEYCODE_M)

'M' key.

Source set: Android
actual val N = Key(KeyEvent.KEYCODE_N)

'N' key.

Source set: Android
actual val O = Key(KeyEvent.KEYCODE_O)

'O' key.

Source set: Android
actual val P = Key(KeyEvent.KEYCODE_P)

'P' key.

Source set: Android
actual val Q = Key(KeyEvent.KEYCODE_Q)

'Q' key.

Source set: Android
actual val R = Key(KeyEvent.KEYCODE_R)

'R' key.

Source set: Android
actual val S = Key(KeyEvent.KEYCODE_S)

'S' key.

Source set: Android
actual val T = Key(KeyEvent.KEYCODE_T)

'T' key.

Source set: Android
actual val U = Key(KeyEvent.KEYCODE_U)

'U' key.

Source set: Android
actual val V = Key(KeyEvent.KEYCODE_V)

'V' key.

Source set: Android
actual val W = Key(KeyEvent.KEYCODE_W)

'W' key.

Source set: Android
actual val X = Key(KeyEvent.KEYCODE_X)

'X' key.

Source set: Android
actual val Y = Key(KeyEvent.KEYCODE_Y)

'Y' key.

Source set: Android
actual val Z = Key(KeyEvent.KEYCODE_Z)

'Z' key.

Source set: Android
actual val Comma = Key(KeyEvent.KEYCODE_COMMA)

',' key.

Source set: Android
actual val Period = Key(KeyEvent.KEYCODE_PERIOD)

'.' key.

Source set: Android
actual val AltLeft = Key(KeyEvent.KEYCODE_ALT_LEFT)

Left Alt modifier key.

Source set: Android
actual val AltRight = Key(KeyEvent.KEYCODE_ALT_RIGHT)

Right Alt modifier key.

Source set: Android
actual val ShiftLeft = Key(KeyEvent.KEYCODE_SHIFT_LEFT)

Left Shift modifier key.

Source set: Android
actual val ShiftRight = Key(KeyEvent.KEYCODE_SHIFT_RIGHT)

Right Shift modifier key.

Source set: Android
actual val Tab = Key(KeyEvent.KEYCODE_TAB)

Tab key.

Source set: Android
actual val Spacebar = Key(KeyEvent.KEYCODE_SPACE)

Space key.

Source set: Android
actual val Symbol = Key(KeyEvent.KEYCODE_SYM)

Symbol modifier key.

Used to enter alternate symbols.

Source set: Android
actual val Browser = Key(KeyEvent.KEYCODE_EXPLORER)

Browser special function key.

Used to launch a browser application.

Source set: Android
actual val Envelope = Key(KeyEvent.KEYCODE_ENVELOPE)

Envelope special function key.

Used to launch a mail application.

Source set: Android
actual val Enter = Key(KeyEvent.KEYCODE_ENTER)

Enter key.

Source set: Android
actual val Backspace = Key(KeyEvent.KEYCODE_DEL)

Backspace key.

Deletes characters before the insertion point, unlike Delete.

Source set: Android
actual val Delete = Key(KeyEvent.KEYCODE_FORWARD_DEL)

Delete key.

Deletes characters ahead of the insertion point, unlike Backspace.

Source set: Android
actual val Escape = Key(KeyEvent.KEYCODE_ESCAPE)

Escape key.

Source set: Android
actual val CtrlLeft = Key(KeyEvent.KEYCODE_CTRL_LEFT)

Left Control modifier key.

Source set: Android
actual val CtrlRight = Key(KeyEvent.KEYCODE_CTRL_RIGHT)

Right Control modifier key.

Source set: Android
actual val CapsLock = Key(KeyEvent.KEYCODE_CAPS_LOCK)

Caps Lock key.

Source set: Android
actual val ScrollLock = Key(KeyEvent.KEYCODE_SCROLL_LOCK)

Scroll Lock key.

Source set: Android
actual val MetaLeft = Key(KeyEvent.KEYCODE_META_LEFT)

Left Meta modifier key.

Source set: Android
actual val MetaRight = Key(KeyEvent.KEYCODE_META_RIGHT)

Right Meta modifier key.

Source set: Android
actual val Function = Key(KeyEvent.KEYCODE_FUNCTION)

Function modifier key.

Source set: Android
actual val PrintScreen = Key(KeyEvent.KEYCODE_SYSRQ)

System Request / Print Screen key.

Source set: Android
actual val Break = Key(KeyEvent.KEYCODE_BREAK)

Break / Pause key.

Source set: Android
actual val MoveHome = Key(KeyEvent.KEYCODE_MOVE_HOME)

Home Movement key.

Used for scrolling or moving the cursor around to the start of a line or to the top of a list.

Source set: Android
actual val MoveEnd = Key(KeyEvent.KEYCODE_MOVE_END)

End Movement key.

Used for scrolling or moving the cursor around to the end of a line or to the bottom of a list.

Source set: Android
actual val Insert = Key(KeyEvent.KEYCODE_INSERT)

Insert key.

Toggles insert / overwrite edit mode.

Source set: Android
actual val Cut = Key(KeyEvent.KEYCODE_CUT)

Cut key.

Source set: Android
actual val Copy = Key(KeyEvent.KEYCODE_COPY)

Copy key.

Source set: Android
actual val Paste = Key(KeyEvent.KEYCODE_PASTE)

Paste key.

Source set: Android
actual val Grave = Key(KeyEvent.KEYCODE_GRAVE)

'`' (backtick) key.

Source set: Android
actual val LeftBracket = Key(KeyEvent.KEYCODE_LEFT_BRACKET)

'[' key.

Source set: Android
actual val RightBracket = Key(KeyEvent.KEYCODE_RIGHT_BRACKET)

']' key.

Source set: Android
actual val Slash = Key(KeyEvent.KEYCODE_SLASH)

'/' key.

Source set: Android
actual val Backslash = Key(KeyEvent.KEYCODE_BACKSLASH)

'\' key.

Source set: Android
actual val Semicolon = Key(KeyEvent.KEYCODE_SEMICOLON)

';' key.

Source set: Android
actual val Apostrophe = Key(KeyEvent.KEYCODE_APOSTROPHE)

''' (apostrophe) key.

Source set: Android
actual val At = Key(KeyEvent.KEYCODE_AT)

'@' key.

Source set: Android
actual val Number = Key(KeyEvent.KEYCODE_NUM)

Number modifier key.

Used to enter numeric symbols. This key is not Num Lock; it is more like AltLeft.

Source set: Android
actual val HeadsetHook = Key(KeyEvent.KEYCODE_HEADSETHOOK)

Headset Hook key.

Used to hang up calls and stop media.

Source set: Android
actual val Focus = Key(KeyEvent.KEYCODE_FOCUS)

Camera Focus key.

Used to focus the camera.

Source set: Android
actual val Menu = Key(KeyEvent.KEYCODE_MENU)

Menu key.

Source set: Android
actual val Notification = Key(KeyEvent.KEYCODE_NOTIFICATION)

Notification key.

Source set: Android
actual val Search = Key(KeyEvent.KEYCODE_SEARCH)

Search key.

Source set: Android
actual val PageUp = Key(KeyEvent.KEYCODE_PAGE_UP)

Page Up key.

Source set: Android
actual val PageDown = Key(KeyEvent.KEYCODE_PAGE_DOWN)

Page Down key.

Source set: Android
actual val PictureSymbols = Key(KeyEvent.KEYCODE_PICTSYMBOLS)

Picture Symbols modifier key.

Used to switch symbol sets (Emoji, Kao-moji).

Source set: Android
actual val SwitchCharset = Key(KeyEvent.KEYCODE_SWITCH_CHARSET)

Switch Charset modifier key.

Used to switch character sets (Kanji, Katakana).

Source set: Android
actual val ButtonA = Key(KeyEvent.KEYCODE_BUTTON_A)

A Button key.

On a game controller, the A button should be either the button labeled A or the first button on the bottom row of controller buttons.

Source set: Android
actual val ButtonB = Key(KeyEvent.KEYCODE_BUTTON_B)

B Button key.

On a game controller, the B button should be either the button labeled B or the second button on the bottom row of controller buttons.

Source set: Android
actual val ButtonC = Key(KeyEvent.KEYCODE_BUTTON_C)

C Button key.

On a game controller, the C button should be either the button labeled C or the third button on the bottom row of controller buttons.

Source set: Android
actual val ButtonX = Key(KeyEvent.KEYCODE_BUTTON_X)

X Button key.

On a game controller, the X button should be either the button labeled X or the first button on the upper row of controller buttons.

Source set: Android
actual val ButtonY = Key(KeyEvent.KEYCODE_BUTTON_Y)

Y Button key.

On a game controller, the Y button should be either the button labeled Y or the second button on the upper row of controller buttons.

Source set: Android
actual val ButtonZ = Key(KeyEvent.KEYCODE_BUTTON_Z)

Z Button key.

On a game controller, the Z button should be either the button labeled Z or the third button on the upper row of controller buttons.

Source set: Android
actual val ButtonL1 = Key(KeyEvent.KEYCODE_BUTTON_L1)

L1 Button key.

On a game controller, the L1 button should be either the button labeled L1 (or L) or the top left trigger button.

Source set: Android
actual val ButtonR1 = Key(KeyEvent.KEYCODE_BUTTON_R1)

R1 Button key.

On a game controller, the R1 button should be either the button labeled R1 (or R) or the top right trigger button.

Source set: Android
actual val ButtonL2 = Key(KeyEvent.KEYCODE_BUTTON_L2)

L2 Button key.

On a game controller, the L2 button should be either the button labeled L2 or the bottom left trigger button.

Source set: Android
actual val ButtonR2 = Key(KeyEvent.KEYCODE_BUTTON_R2)

R2 Button key.

On a game controller, the R2 button should be either the button labeled R2 or the bottom right trigger button.

Source set: Android
actual val ButtonThumbLeft = Key(KeyEvent.KEYCODE_BUTTON_THUMBL)

Left Thumb Button key.

On a game controller, the left thumb button indicates that the left (or only) joystick is pressed.

Source set: Android
actual val ButtonThumbRight = Key(KeyEvent.KEYCODE_BUTTON_THUMBR)

Right Thumb Button key.

On a game controller, the right thumb button indicates that the right joystick is pressed.

Source set: Android
actual val ButtonStart = Key(KeyEvent.KEYCODE_BUTTON_START)

Start Button key.

On a game controller, the button labeled Start.

Source set: Android
actual val ButtonSelect = Key(KeyEvent.KEYCODE_BUTTON_SELECT)

Select Button key.

On a game controller, the button labeled Select.

Source set: Android
actual val ButtonMode = Key(KeyEvent.KEYCODE_BUTTON_MODE)

Mode Button key.

On a game controller, the button labeled Mode.

Source set: Android
actual val Button1 = Key(KeyEvent.KEYCODE_BUTTON_1)

Generic Game Pad Button #1.

Source set: Android
actual val Button2 = Key(KeyEvent.KEYCODE_BUTTON_2)

Generic Game Pad Button #2.

Source set: Android
actual val Button3 = Key(KeyEvent.KEYCODE_BUTTON_3)

Generic Game Pad Button #3.

Source set: Android
actual val Button4 = Key(KeyEvent.KEYCODE_BUTTON_4)

Generic Game Pad Button #4.

Source set: Android
actual val Button5 = Key(KeyEvent.KEYCODE_BUTTON_5)

Generic Game Pad Button #5.

Source set: Android
actual val Button6 = Key(KeyEvent.KEYCODE_BUTTON_6)

Generic Game Pad Button #6.

Source set: Android
actual val Button7 = Key(KeyEvent.KEYCODE_BUTTON_7)

Generic Game Pad Button #7.

Source set: Android
actual val Button8 = Key(KeyEvent.KEYCODE_BUTTON_8)

Generic Game Pad Button #8.

Source set: Android
actual val Button9 = Key(KeyEvent.KEYCODE_BUTTON_9)

Generic Game Pad Button #9.

Source set: Android
actual val Button10 = Key(KeyEvent.KEYCODE_BUTTON_10)

Generic Game Pad Button #10.

Source set: Android
actual val Button11 = Key(KeyEvent.KEYCODE_BUTTON_11)

Generic Game Pad Button #11.

Source set: Android
actual val Button12 = Key(KeyEvent.KEYCODE_BUTTON_12)

Generic Game Pad Button #12.

Source set: Android
actual val Button13 = Key(KeyEvent.KEYCODE_BUTTON_13)

Generic Game Pad Button #13.

Source set: Android
actual val Button14 = Key(KeyEvent.KEYCODE_BUTTON_14)

Generic Game Pad Button #14.

Source set: Android
actual val Button15 = Key(KeyEvent.KEYCODE_BUTTON_15)

Generic Game Pad Button #15.

Source set: Android
actual val Button16 = Key(KeyEvent.KEYCODE_BUTTON_16)

Generic Game Pad Button #16.

Source set: Android
actual val Forward = Key(KeyEvent.KEYCODE_FORWARD)

Forward key.

Navigates forward in the history stack. Complement of Back.

Source set: Android
actual val F1 = Key(KeyEvent.KEYCODE_F1)

F1 key.

Source set: Android
actual val F2 = Key(KeyEvent.KEYCODE_F2)

F2 key.

Source set: Android
actual val F3 = Key(KeyEvent.KEYCODE_F3)

F3 key.

Source set: Android
actual val F4 = Key(KeyEvent.KEYCODE_F4)

F4 key.

Source set: Android
actual val F5 = Key(KeyEvent.KEYCODE_F5)

F5 key.

Source set: Android
actual val F6 = Key(KeyEvent.KEYCODE_F6)

F6 key.

Source set: Android
actual val F7 = Key(KeyEvent.KEYCODE_F7)

F7 key.

Source set: Android
actual val F8 = Key(KeyEvent.KEYCODE_F8)

F8 key.

Source set: Android
actual val F9 = Key(KeyEvent.KEYCODE_F9)

F9 key.

Source set: Android
actual val F10 = Key(KeyEvent.KEYCODE_F10)

F10 key.

Source set: Android
actual val F11 = Key(KeyEvent.KEYCODE_F11)

F11 key.

Source set: Android
actual val F12 = Key(KeyEvent.KEYCODE_F12)

F12 key.

Source set: Android
actual val NumLock = Key(KeyEvent.KEYCODE_NUM_LOCK)

Num Lock key.

This is the Num Lock key; it is different from Number. This key alters the behavior of other keys on the numeric keypad.

Source set: Android
actual val NumPad0 = Key(KeyEvent.KEYCODE_NUMPAD_0)

Numeric keypad '0' key.

Source set: Android
actual val NumPad1 = Key(KeyEvent.KEYCODE_NUMPAD_1)

Numeric keypad '1' key.

Source set: Android
actual val NumPad2 = Key(KeyEvent.KEYCODE_NUMPAD_2)

Numeric keypad '2' key.

Source set: Android
actual val NumPad3 = Key(KeyEvent.KEYCODE_NUMPAD_3)

Numeric keypad '3' key.

Source set: Android
actual val NumPad4 = Key(KeyEvent.KEYCODE_NUMPAD_4)

Numeric keypad '4' key.

Source set: Android
actual val NumPad5 = Key(KeyEvent.KEYCODE_NUMPAD_5)

Numeric keypad '5' key.

Source set: Android
actual val NumPad6 = Key(KeyEvent.KEYCODE_NUMPAD_6)

Numeric keypad '6' key.

Source set: Android
actual val NumPad7 = Key(KeyEvent.KEYCODE_NUMPAD_7)

Numeric keypad '7' key.

Source set: Android
actual val NumPad8 = Key(KeyEvent.KEYCODE_NUMPAD_8)

Numeric keypad '8' key.

Source set: Android
actual val NumPad9 = Key(KeyEvent.KEYCODE_NUMPAD_9)

Numeric keypad '9' key.

Source set: Android
actual val NumPadDivide = Key(KeyEvent.KEYCODE_NUMPAD_DIVIDE)

Numeric keypad '/' key (for division).

Source set: Android
actual val NumPadMultiply = Key(KeyEvent.KEYCODE_NUMPAD_MULTIPLY)

Numeric keypad '*' key (for multiplication).

Source set: Android
actual val NumPadSubtract = Key(KeyEvent.KEYCODE_NUMPAD_SUBTRACT)

Numeric keypad '-' key (for subtraction).

Source set: Android
actual val NumPadAdd = Key(KeyEvent.KEYCODE_NUMPAD_ADD)

Numeric keypad '+' key (for addition).

Source set: Android
actual val NumPadDot = Key(KeyEvent.KEYCODE_NUMPAD_DOT)

Numeric keypad '.' key (for decimals or digit grouping).

Source set: Android
actual val NumPadComma = Key(KeyEvent.KEYCODE_NUMPAD_COMMA)

Numeric keypad ',' key (for decimals or digit grouping).

Source set: Android
actual val NumPadEnter = Key(KeyEvent.KEYCODE_NUMPAD_ENTER)

Numeric keypad Enter key.

Source set: Android
actual val NumPadEquals = Key(KeyEvent.KEYCODE_NUMPAD_EQUALS)

Numeric keypad '=' key.

Source set: Android
actual val NumPadLeftParenthesis = Key(KeyEvent.KEYCODE_NUMPAD_LEFT_PAREN)

Numeric keypad '(' key.

Source set: Android
actual val NumPadRightParenthesis = Key(KeyEvent.KEYCODE_NUMPAD_RIGHT_PAREN)

Numeric keypad ')' key.

Source set: Android
actual val MediaPlay = Key(KeyEvent.KEYCODE_MEDIA_PLAY)

Play media key.

Source set: Android
actual val MediaPause = Key(KeyEvent.KEYCODE_MEDIA_PAUSE)

Pause media key.

Source set: Android
actual val MediaPlayPause = Key(KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE)

Play/Pause media key.

Source set: Android
actual val MediaStop = Key(KeyEvent.KEYCODE_MEDIA_STOP)

Stop media key.

Source set: Android
actual val MediaRecord = Key(KeyEvent.KEYCODE_MEDIA_RECORD)

Record media key.

Source set: Android
actual val MediaNext = Key(KeyEvent.KEYCODE_MEDIA_NEXT)

Play Next media key.

Source set: Android
actual val MediaPrevious = Key(KeyEvent.KEYCODE_MEDIA_PREVIOUS)

Play Previous media key.

Source set: Android
actual val MediaRewind = Key(KeyEvent.KEYCODE_MEDIA_REWIND)

Rewind media key.

Source set: Android
actual val MediaFastForward = Key(KeyEvent.KEYCODE_MEDIA_FAST_FORWARD)

Fast Forward media key.

Source set: Android
actual val MediaClose = Key(KeyEvent.KEYCODE_MEDIA_CLOSE)

Close media key.

May be used to close a CD tray, for example.

Source set: Android
actual val MediaAudioTrack = Key(KeyEvent.KEYCODE_MEDIA_AUDIO_TRACK)

Audio Track key.

Switches the audio tracks.

Source set: Android
actual val MediaEject = Key(KeyEvent.KEYCODE_MEDIA_EJECT)

Eject media key.

May be used to eject a CD tray, for example.

Source set: Android
actual val MediaTopMenu = Key(KeyEvent.KEYCODE_MEDIA_TOP_MENU)

Media Top Menu key.

Goes to the top of media menu.

Source set: Android
actual val MediaSkipForward = Key(KeyEvent.KEYCODE_MEDIA_SKIP_FORWARD)

Skip forward media key.

Source set: Android
actual val MediaSkipBackward = Key(KeyEvent.KEYCODE_MEDIA_SKIP_BACKWARD)

Skip backward media key.

Source set: Android
actual val MediaStepForward = Key(KeyEvent.KEYCODE_MEDIA_STEP_FORWARD)

Step forward media key.

Steps media forward, one frame at a time.

Source set: Android
actual val MediaStepBackward = Key(KeyEvent.KEYCODE_MEDIA_STEP_BACKWARD)

Step backward media key.

Steps media backward, one frame at a time.

Source set: Android
actual val MicrophoneMute = Key(KeyEvent.KEYCODE_MUTE)

Mute key.

Mutes the microphone, unlike VolumeMute.

Source set: Android
actual val VolumeMute = Key(KeyEvent.KEYCODE_VOLUME_MUTE)

Volume Mute key.

Mutes the speaker, unlike MicrophoneMute.

This key should normally be implemented as a toggle such that the first press mutes the speaker and the second press restores the original volume.

Source set: Android
actual val Info = Key(KeyEvent.KEYCODE_INFO)

Info key.

Common on TV remotes to show additional information related to what is currently being viewed.

Source set: Android
actual val ChannelUp = Key(KeyEvent.KEYCODE_CHANNEL_UP)

Channel up key.

On TV remotes, increments the television channel.

Source set: Android
actual val ChannelDown = Key(KeyEvent.KEYCODE_CHANNEL_DOWN)

Channel down key.

On TV remotes, decrements the television channel.

Source set: Android
actual val ZoomIn = Key(KeyEvent.KEYCODE_ZOOM_IN)

Zoom in key.

Source set: Android
actual val ZoomOut = Key(KeyEvent.KEYCODE_ZOOM_OUT)

Zoom out key.

Source set: Android
actual val Tv = Key(KeyEvent.KEYCODE_TV)

TV key.

On TV remotes, switches to viewing live TV.

Source set: Android
actual val Window = Key(KeyEvent.KEYCODE_WINDOW)

Window key.

On TV remotes, toggles picture-in-picture mode or other windowing functions. On Android Wear devices, triggers a display offset.

Source set: Android
actual val Guide = Key(KeyEvent.KEYCODE_GUIDE)

Guide key.

On TV remotes, shows a programming guide.

Source set: Android
actual val Dvr = Key(KeyEvent.KEYCODE_DVR)

DVR key.

On some TV remotes, switches to a DVR mode for recorded shows.

Source set: Android
actual val Bookmark = Key(KeyEvent.KEYCODE_BOOKMARK)

Bookmark key.

On some TV remotes, bookmarks content or web pages.

Source set: Android
actual val Captions = Key(KeyEvent.KEYCODE_CAPTIONS)

Toggle captions key.

Switches the mode for closed-captioning text, for example during television shows.

Source set: Android
actual val Settings = Key(KeyEvent.KEYCODE_SETTINGS)

Settings key.

Starts the system settings activity.

Source set: Android
actual val TvPower = Key(KeyEvent.KEYCODE_TV_POWER)

TV power key.

On TV remotes, toggles the power on a television screen.

Source set: Android
actual val TvInput = Key(KeyEvent.KEYCODE_TV_INPUT)

TV input key.

On TV remotes, switches the input on a television screen.

Source set: Android
actual val SetTopBoxPower = Key(KeyEvent.KEYCODE_STB_POWER)

Set-top-box power key.

On TV remotes, toggles the power on an external Set-top-box.

Source set: Android
actual val SetTopBoxInput = Key(KeyEvent.KEYCODE_STB_INPUT)

Set-top-box input key.

On TV remotes, switches the input mode on an external Set-top-box.

Source set: Android
actual val AvReceiverPower = Key(KeyEvent.KEYCODE_AVR_POWER)

A/V Receiver power key.

On TV remotes, toggles the power on an external A/V Receiver.

Source set: Android
actual val AvReceiverInput = Key(KeyEvent.KEYCODE_AVR_INPUT)

A/V Receiver input key.

On TV remotes, switches the input mode on an external A/V Receiver.

Source set: Android
actual val ProgramRed = Key(KeyEvent.KEYCODE_PROG_RED)

Red "programmable" key.

On TV remotes, acts as a contextual/programmable key.

Source set: Android
actual val ProgramGreen = Key(KeyEvent.KEYCODE_PROG_GREEN)

Green "programmable" key.

On TV remotes, acts as a contextual/programmable key.

Source set: Android
actual val ProgramYellow = Key(KeyEvent.KEYCODE_PROG_YELLOW)

Yellow "programmable" key.

On TV remotes, acts as a contextual/programmable key.

Source set: Android
actual val ProgramBlue = Key(KeyEvent.KEYCODE_PROG_BLUE)

Blue "programmable" key.

On TV remotes, acts as a contextual/programmable key.

Source set: Android
actual val AppSwitch = Key(KeyEvent.KEYCODE_APP_SWITCH)

App switch key.

Should bring up the application switcher dialog.

Source set: Android
actual val LanguageSwitch = Key(KeyEvent.KEYCODE_LANGUAGE_SWITCH)

Language Switch key.

Toggles the current input language such as switching between English and Japanese on a QWERTY keyboard. On some devices, the same function may be performed by pressing Shift+Space.

Source set: Android
actual val MannerMode = Key(KeyEvent.KEYCODE_MANNER_MODE)

Manner Mode key.

Toggles silent or vibrate mode on and off to make the device behave more politely in certain settings such as on a crowded train. On some devices, the key may only operate when long-pressed.

Source set: Android
actual val Toggle2D3D = Key(KeyEvent.KEYCODE_3D_MODE)

3D Mode key.

Toggles the display between 2D and 3D mode.

Source set: Android
actual val Contacts = Key(KeyEvent.KEYCODE_CONTACTS)

Contacts special function key.

Used to launch an address book application.

Source set: Android
actual val Calendar = Key(KeyEvent.KEYCODE_CALENDAR)

Calendar special function key.

Used to launch a calendar application.

Source set: Android
actual val Music = Key(KeyEvent.KEYCODE_MUSIC)

Music special function key.

Used to launch a music player application.

Source set: Android
actual val Calculator = Key(KeyEvent.KEYCODE_CALCULATOR)

Calculator special function key.

Used to launch a calculator application.

Source set: Android
actual val ZenkakuHankaru = Key(KeyEvent.KEYCODE_ZENKAKU_HANKAKU)

Japanese full-width / half-width key.

Source set: Android
actual val Eisu = Key(KeyEvent.KEYCODE_EISU)

Japanese alphanumeric key.

Source set: Android
actual val Muhenkan = Key(KeyEvent.KEYCODE_MUHENKAN)

Japanese non-conversion key.

Source set: Android
actual val Henkan = Key(KeyEvent.KEYCODE_HENKAN)

Japanese conversion key.

Source set: Android
actual val KatakanaHiragana = Key(KeyEvent.KEYCODE_KATAKANA_HIRAGANA)

Japanese katakana / hiragana key.

Source set: Android
actual val Yen = Key(KeyEvent.KEYCODE_YEN)

Japanese Yen key.

Source set: Android
actual val Ro = Key(KeyEvent.KEYCODE_RO)

Japanese Ro key.

Source set: Android
actual val Kana = Key(KeyEvent.KEYCODE_KANA)

Japanese kana key.

Source set: Android
actual val Assist = Key(KeyEvent.KEYCODE_ASSIST)

Assist key.

Launches the global assist activity. Not delivered to applications.

Source set: Android
actual val BrightnessDown = Key(KeyEvent.KEYCODE_BRIGHTNESS_DOWN)

Brightness Down key.

Adjusts the screen brightness down.

Source set: Android
actual val BrightnessUp = Key(KeyEvent.KEYCODE_BRIGHTNESS_UP)

Brightness Up key.

Adjusts the screen brightness up.

Source set: Android
actual val Sleep = Key(KeyEvent.KEYCODE_SLEEP)

Sleep key.

Puts the device to sleep. Behaves somewhat like Power but it has no effect if the device is already asleep.

Source set: Android
actual val WakeUp = Key(KeyEvent.KEYCODE_WAKEUP)

Wakeup key.

Wakes up the device. Behaves somewhat like Power but it has no effect if the device is already awake.

Source set: Android
actual val SoftSleep = Key(KeyEvent.KEYCODE_SOFT_SLEEP)

Put device to sleep unless a wakelock is held.

Source set: Android
actual val Pairing = Key(KeyEvent.KEYCODE_PAIRING)

Pairing key.

Initiates peripheral pairing mode. Useful for pairing remote control devices or game controllers, especially if no other input mode is available.

Source set: Android
actual val LastChannel = Key(KeyEvent.KEYCODE_LAST_CHANNEL)

Last Channel key.

Goes to the last viewed channel.

Source set: Android
actual val TvDataService = Key(KeyEvent.KEYCODE_TV_DATA_SERVICE)

TV data service key.

Displays data services like weather, sports.

Source set: Android
actual val VoiceAssist = Key(KeyEvent.KEYCODE_VOICE_ASSIST)

Voice Assist key.

Launches the global voice assist activity. Not delivered to applications.

Source set: Android
actual val TvRadioService = Key(KeyEvent.KEYCODE_TV_RADIO_SERVICE)

Radio key.

Toggles TV service / Radio service.

Source set: Android
actual val TvTeletext = Key(KeyEvent.KEYCODE_TV_TELETEXT)

Teletext key.

Displays Teletext service.

Source set: Android
actual val TvNumberEntry = Key(KeyEvent.KEYCODE_TV_NUMBER_ENTRY)

Number entry key.

Initiates to enter multi-digit channel number when each digit key is assigned for selecting separate channel. Corresponds to Number Entry Mode (0x1D) of CEC User Control Code.

Source set: Android
actual val TvTerrestrialAnalog = Key(KeyEvent.KEYCODE_TV_TERRESTRIAL_ANALOG)

Analog Terrestrial key.

Switches to analog terrestrial broadcast service.

Source set: Android
actual val TvTerrestrialDigital = Key(KeyEvent.KEYCODE_TV_TERRESTRIAL_DIGITAL)

Digital Terrestrial key.

Switches to digital terrestrial broadcast service.

Source set: Android
actual val TvSatellite = Key(KeyEvent.KEYCODE_TV_SATELLITE)

Satellite key.

Switches to digital satellite broadcast service.

Source set: Android
actual val TvSatelliteBs = Key(KeyEvent.KEYCODE_TV_SATELLITE_BS)

BS key.

Switches to BS digital satellite broadcasting service available in Japan.

Source set: Android
actual val TvSatelliteCs = Key(KeyEvent.KEYCODE_TV_SATELLITE_CS)

CS key.

Switches to CS digital satellite broadcasting service available in Japan.

Source set: Android
actual val TvSatelliteService = Key(KeyEvent.KEYCODE_TV_SATELLITE_SERVICE)

BS/CS key.

Toggles between BS and CS digital satellite services.

Source set: Android
actual val TvNetwork = Key(KeyEvent.KEYCODE_TV_NETWORK)

Toggle Network key.

Toggles selecting broadcast services.

Source set: Android
actual val TvAntennaCable = Key(KeyEvent.KEYCODE_TV_ANTENNA_CABLE)

Antenna/Cable key.

Toggles broadcast input source between antenna and cable.

Source set: Android
actual val TvInputHdmi1 = Key(KeyEvent.KEYCODE_TV_INPUT_HDMI_1)

HDMI #1 key.

Switches to HDMI input #1.

Source set: Android
actual val TvInputHdmi2 = Key(KeyEvent.KEYCODE_TV_INPUT_HDMI_2)

HDMI #2 key.

Switches to HDMI input #2.

Source set: Android
actual val TvInputHdmi3 = Key(KeyEvent.KEYCODE_TV_INPUT_HDMI_3)

HDMI #3 key.

Switches to HDMI input #3.

Source set: Android
actual val TvInputHdmi4 = Key(KeyEvent.KEYCODE_TV_INPUT_HDMI_4)

HDMI #4 key.

Switches to HDMI input #4.

Source set: Android
actual val TvInputComposite1 = Key(KeyEvent.KEYCODE_TV_INPUT_COMPOSITE_1)

Composite #1 key.

Switches to composite video input #1.

Source set: Android
actual val TvInputComposite2 = Key(KeyEvent.KEYCODE_TV_INPUT_COMPOSITE_2)

Composite #2 key.

Switches to composite video input #2.

Source set: Android
actual val TvInputComponent1 = Key(KeyEvent.KEYCODE_TV_INPUT_COMPONENT_1)

Component #1 key.

Switches to component video input #1.

Source set: Android
actual val TvInputComponent2 = Key(KeyEvent.KEYCODE_TV_INPUT_COMPONENT_2)

Component #2 key.

Switches to component video input #2.

Source set: Android
actual val TvInputVga1 = Key(KeyEvent.KEYCODE_TV_INPUT_VGA_1)

VGA #1 key.

Switches to VGA (analog RGB) input #1.

Source set: Android
actual val TvAudioDescription = Key(KeyEvent.KEYCODE_TV_AUDIO_DESCRIPTION)

Audio description key.

Toggles audio description off / on.

Source set: Android
actual val TvAudioDescriptionMixingVolumeUp = Key(KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP)

Audio description mixing volume up key.

Increase the audio description volume as compared with normal audio volume.

Source set: Android
actual val TvAudioDescriptionMixingVolumeDown = Key(KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN)

Audio description mixing volume down key.

Lessen audio description volume as compared with normal audio volume.

Source set: Android
actual val TvZoomMode = Key(KeyEvent.KEYCODE_TV_ZOOM_MODE)

Zoom mode key.

Changes Zoom mode (Normal, Full, Zoom, Wide-zoom, etc.)

Source set: Android
actual val TvContentsMenu = Key(KeyEvent.KEYCODE_TV_CONTENTS_MENU)

Contents menu key.

Goes to the title list. Corresponds to Contents Menu (0x0B) of CEC User Control Code

Source set: Android
actual val TvMediaContextMenu = Key(KeyEvent.KEYCODE_TV_MEDIA_CONTEXT_MENU)

Media context menu key.

Goes to the context menu of media contents. Corresponds to Media Context-sensitive Menu (0x11) of CEC User Control Code.

Source set: Android
actual val TvTimerProgramming = Key(KeyEvent.KEYCODE_TV_TIMER_PROGRAMMING)

Timer programming key.

Goes to the timer recording menu. Corresponds to Timer Programming (0x54) of CEC User Control Code.

Source set: Android
actual val StemPrimary = Key(KeyEvent.KEYCODE_STEM_PRIMARY)

Primary stem key for Wearables.

Main power/reset button.

Source set: Android
actual val Stem1 = Key(KeyEvent.KEYCODE_STEM_1)

Generic stem key 1 for Wearables.

Source set: Android
actual val Stem2 = Key(KeyEvent.KEYCODE_STEM_2)

Generic stem key 2 for Wearables.

Source set: Android
actual val Stem3 = Key(KeyEvent.KEYCODE_STEM_3)

Generic stem key 3 for Wearables.

Source set: Android
actual val AllApps = Key(KeyEvent.KEYCODE_ALL_APPS)

Show all apps.

Source set: Android
actual val Refresh = Key(KeyEvent.KEYCODE_REFRESH)

Refresh key.

Source set: Android
actual val ThumbsUp = Key(KeyEvent.KEYCODE_THUMBS_UP)

Thumbs up key. Apps can use this to let user up-vote content.

Source set: Android
actual val ThumbsDown = Key(KeyEvent.KEYCODE_THUMBS_DOWN)

Thumbs down key. Apps can use this to let user down-vote content.

Source set: Android
actual val ProfileSwitch = Key(KeyEvent.KEYCODE_PROFILE_SWITCH)

Used to switch current [account]android.accounts.Account that is consuming content. May be consumed by system to set account globally.

Source set: Android
actual val NumPadDirectionUp = Key(-1000000001)

Numeric keypad Up Arrow Key. Unsupported on Android.

Source set: Android
actual val NumPadDirectionDown = Key(-1000000002)

Numeric keypad Down Arrow Key. Unsupported on Android.

Source set: Android
actual val NumPadDirectionLeft = Key(-1000000003)

Numeric keypad Left Arrow Key. Unsupported on Android.

Source set: Android
actual val NumPadDirectionRight = Key(-1000000004)

Numeric keypad Right Arrow Key. Unsupported on Android.

Source set: Android
actual val NumPadMoveHome = Key(-1000000005)

Numeric keypad Home Key. Unsupported on Android.

Source set: Android
actual val NumPadMoveEnd = Key(-1000000006)

Numeric keypad End Key. Unsupported on Android.

Source set: Android
actual val NumPadPageUp = Key(-1000000007)

Numeric keypad Page Up Key. Unsupported on Android.

Source set: Android
actual val NumPadPageDown = Key(-1000000008)

Numeric keypad Page Down Key. Unsupported on Android.

Source set: Android
actual val NumPadInsert = Key(-1000000009)

Numeric keypad Insert Key. Unsupported on Android.

Source set: Android
actual val NumPadDelete = Key(-1000000010)

Numeric keypad Delete key. Unsupported on Android.

Last updated: