Class
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

Common
val Unknown: Key

Unknown key.

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.

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.

Common
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
val Home: Key

System Home key.

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

Common
val SystemHome: Key

System Home key.

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

Common
val Back: Key

Back key.

Common
val Help: Key

Help key.

Common
val NavigatePrevious: Key

Navigate to previous key.

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

Common
val NavigateNext: Key

Navigate to next key.

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

Common
val NavigateIn: Key

Navigate in key.

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

Common
val NavigateOut: Key

Navigate out key.

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

Common
val SystemNavigationUp: Key

Consumed by the system for navigation up.

Common
val SystemNavigationDown: Key

Consumed by the system for navigation down.

Common
val SystemNavigationLeft: Key

Consumed by the system for navigation left.

Common
val SystemNavigationRight: Key

Consumed by the system for navigation right.

Common
val Call: Key

Call key.

Common
val EndCall: Key

End Call key.

Common
val DirectionUp: Key

Up Arrow Key / Directional Pad Up key.

May also be synthesized from trackball motions.

Common
val DirectionDown: Key

Down Arrow Key / Directional Pad Down key.

May also be synthesized from trackball motions.

Common
val DirectionLeft: Key

Left Arrow Key / Directional Pad Left key.

May also be synthesized from trackball motions.

Common
val DirectionRight: Key

Right Arrow Key / Directional Pad Right key.

May also be synthesized from trackball motions.

Common
val DirectionCenter: Key

Center Arrow Key / Directional Pad Center key.

May also be synthesized from trackball motions.

Common
val DirectionUpLeft: Key

Directional Pad Up-Left.

Common
val DirectionDownLeft: Key

Directional Pad Down-Left.

Common
val DirectionUpRight: Key

Directional Pad Up-Right.

Common
val DirectionDownRight: Key

Directional Pad Down-Right.

Common
val VolumeUp: Key

Volume Up key.

Adjusts the speaker volume up.

Common
val VolumeDown: Key

Volume Down key.

Adjusts the speaker volume down.

Common
val Power: Key

Power key.

Common
val Camera: Key

Camera key.

Used to launch a camera application or take pictures.

Common
val Clear: Key

Clear key.

Common
val Zero: Key

'0' key.

Common
val One: Key

'1' key.

Common
val Two: Key

'2' key.

Common
val Three: Key

'3' key.

Common
val Four: Key

'4' key.

Common
val Five: Key

'5' key.

Common
val Six: Key

'6' key.

Common
val Seven: Key

'7' key.

Common
val Eight: Key

'8' key.

Common
val Nine: Key

'9' key.

Common
val Plus: Key

'+' key.

Common
val Minus: Key

'-' key.

Common
val Multiply: Key

'*' key.

Common
val Equals: Key

'=' key.

Common
val Pound: Key

'#' key.

Common
val A: Key

'A' key.

Common
val B: Key

'B' key.

Common
val C: Key

'C' key.

Common
val D: Key

'D' key.

Common
val E: Key

'E' key.

Common
val F: Key

'F' key.

Common
val G: Key

'G' key.

Common
val H: Key

'H' key.

Common
val I: Key

'I' key.

Common
val J: Key

'J' key.

Common
val K: Key

'K' key.

Common
val L: Key

'L' key.

Common
val M: Key

'M' key.

Common
val N: Key

'N' key.

Common
val O: Key

'O' key.

Common
val P: Key

'P' key.

Common
val Q: Key

'Q' key.

Common
val R: Key

'R' key.

Common
val S: Key

'S' key.

Common
val T: Key

'T' key.

Common
val U: Key

'U' key.

Common
val V: Key

'V' key.

Common
val W: Key

'W' key.

Common
val X: Key

'X' key.

Common
val Y: Key

'Y' key.

Common
val Z: Key

'Z' key.

Common
val Comma: Key

',' key.

Common
val Period: Key

'.' key.

Common
val AltLeft: Key

Left Alt modifier key.

Common
val AltRight: Key

Right Alt modifier key.

Common
val ShiftLeft: Key

Left Shift modifier key.

Common
val ShiftRight: Key

Right Shift modifier key.

Common
val Tab: Key

Tab key.

Common
val Spacebar: Key

Space key.

Common
val Symbol: Key

Symbol modifier key.

Used to enter alternate symbols.

Common
val Browser: Key

Browser special function key.

Used to launch a browser application.

Common
val Envelope: Key

Envelope special function key.

Used to launch a mail application.

Common
val Enter: Key

Enter key.

Common
val Backspace: Key

Backspace key.

Deletes characters before the insertion point, unlike Delete.

Common
val Delete: Key

Delete key.

Deletes characters ahead of the insertion point, unlike Backspace.

Common
val Escape: Key

Escape key.

Common
val CtrlLeft: Key

Left Control modifier key.

Common
val CtrlRight: Key

Right Control modifier key.

Common
val CapsLock: Key

Caps Lock key.

Common
val ScrollLock: Key

Scroll Lock key.

Common
val MetaLeft: Key

Left Meta modifier key.

Common
val MetaRight: Key

Right Meta modifier key.

Common
val Function: Key

Function modifier key.

Common
val PrintScreen: Key

System Request / Print Screen key.

Common
val Break: Key

Break / Pause key.

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.

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.

Common
val Insert: Key

Insert key.

Toggles insert / overwrite edit mode.

Common
val Cut: Key

Cut key.

Common
val Copy: Key

Copy key.

Common
val Paste: Key

Paste key.

Common
val Grave: Key

'`' (backtick) key.

Common
val LeftBracket: Key

'`' key.

Common
val RightBracket: Key

'`' key.

Common
val Slash: Key

'/' key.

Common
val Backslash: Key

'\' key.

Common
val Semicolon: Key

';' key.

Common
val Apostrophe: Key

''' (apostrophe) key.

Common
val At: Key

'@' key.

Common
val Number: Key

Number modifier key.

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

Common
val HeadsetHook: Key

Headset Hook key.

Used to hang up calls and stop media.

Common
val Focus: Key

Camera Focus key.

Used to focus the camera.

Common
val Menu: Key

Menu key.

Common
val Notification: Key

Notification key.

Common
val Search: Key

Search key.

Common
val PageUp: Key

Page Up key.

Common
val PageDown: Key

Page Down key.

Common
val PictureSymbols: Key

Picture Symbols modifier key.

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

Common
val SwitchCharset: Key

Switch Charset modifier key.

Used to switch character sets (Kanji, Katakana).

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Common
val ButtonThumbRight: Key

Right Thumb Button key.

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

Common
val ButtonStart: Key

Start Button key.

On a game controller, the button labeled Start.

Common
val ButtonSelect: Key

Select Button key.

On a game controller, the button labeled Select.

Common
val ButtonMode: Key

Mode Button key.

On a game controller, the button labeled Mode.

Common
val Button1: Key

Generic Game Pad Button #1.

Common
val Button2: Key

Generic Game Pad Button #2.

Common
val Button3: Key

Generic Game Pad Button #3.

Common
val Button4: Key

Generic Game Pad Button #4.

Common
val Button5: Key

Generic Game Pad Button #5.

Common
val Button6: Key

Generic Game Pad Button #6.

Common
val Button7: Key

Generic Game Pad Button #7.

Common
val Button8: Key

Generic Game Pad Button #8.

Common
val Button9: Key

Generic Game Pad Button #9.

Common
val Button10: Key

Generic Game Pad Button #10.

Common
val Button11: Key

Generic Game Pad Button #11.

Common
val Button12: Key

Generic Game Pad Button #12.

Common
val Button13: Key

Generic Game Pad Button #13.

Common
val Button14: Key

Generic Game Pad Button #14.

Common
val Button15: Key

Generic Game Pad Button #15.

Common
val Button16: Key

Generic Game Pad Button #16.

Common
val Forward: Key

Forward key.

Navigates forward in the history stack. Complement of Back.

Common
val F1: Key

F1 key.

Common
val F2: Key

F2 key.

Common
val F3: Key

F3 key.

Common
val F4: Key

F4 key.

Common
val F5: Key

F5 key.

Common
val F6: Key

F6 key.

Common
val F7: Key

F7 key.

Common
val F8: Key

F8 key.

Common
val F9: Key

F9 key.

Common
val F10: Key

F10 key.

Common
val F11: Key

F11 key.

Common
val F12: Key

F12 key.

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.

Common
val NumPad0: Key

Numeric keypad '0' key.

Common
val NumPad1: Key

Numeric keypad '1' key.

Common
val NumPad2: Key

Numeric keypad '2' key.

Common
val NumPad3: Key

Numeric keypad '3' key.

Common
val NumPad4: Key

Numeric keypad '4' key.

Common
val NumPad5: Key

Numeric keypad '5' key.

Common
val NumPad6: Key

Numeric keypad '6' key.

Common
val NumPad7: Key

Numeric keypad '7' key.

Common
val NumPad8: Key

Numeric keypad '8' key.

Common
val NumPad9: Key

Numeric keypad '9' key.

Common
val NumPadDivide: Key

Numeric keypad '/' key (for division).

Common
val NumPadMultiply: Key

Numeric keypad '*' key (for multiplication).

Common
val NumPadSubtract: Key

Numeric keypad '-' key (for subtraction).

Common
val NumPadAdd: Key

Numeric keypad '+' key (for addition).

Common
val NumPadDot: Key

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

Common
val NumPadComma: Key

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

Common
val NumPadEnter: Key

Numeric keypad Enter key.

Common
val NumPadEquals: Key

Numeric keypad '=' key.

Common
val NumPadLeftParenthesis: Key

Numeric keypad '(' key.

Common
val NumPadRightParenthesis: Key

Numeric keypad ')' key.

Common
val NumPadDirectionUp: Key

Numeric keypad Up Arrow Key.

Common
val NumPadDirectionDown: Key

Numeric keypad Down Arrow Key.

Common
val NumPadDirectionLeft: Key

Numeric keypad Left Arrow Key.

Common
val NumPadDirectionRight: Key

Numeric keypad Right Arrow Key.

Common
val NumPadMoveHome: Key

Numeric keypad Home Key.

Common
val NumPadMoveEnd: Key

Numeric keypad End Key.

Common
val NumPadPageUp: Key

Numeric keypad Page Up Key.

Common
val NumPadPageDown: Key

Numeric keypad Page Down Key.

Common
val NumPadInsert: Key

Numeric keypad Insert Key.

Common
val NumPadDelete: Key

Numeric keypad Delete Key.

Common
val MediaPlay: Key

Play media key.

Common
val MediaPause: Key

Pause media key.

Common
val MediaPlayPause: Key

Play/Pause media key.

Common
val MediaStop: Key

Stop media key.

Common
val MediaRecord: Key

Record media key.

Common
val MediaNext: Key

Play Next media key.

Common
val MediaPrevious: Key

Play Previous media key.

Common
val MediaRewind: Key

Rewind media key.

Common
val MediaFastForward: Key

Fast Forward media key.

Common
val MediaClose: Key

Close media key.

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

Common
val MediaAudioTrack: Key

Audio Track key.

Switches the audio tracks.

Common
val MediaEject: Key

Eject media key.

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

Common
val MediaTopMenu: Key

Media Top Menu key.

Goes to the top of media menu.

Common
val MediaSkipForward: Key

Skip forward media key.

Common
val MediaSkipBackward: Key

Skip backward media key.

Common
val MediaStepForward: Key

Step forward media key.

Steps media forward, one frame at a time.

Common
val MediaStepBackward: Key

Step backward media key.

Steps media backward, one frame at a time.

Common
val MicrophoneMute: Key

Mute key.

Mutes the microphone, unlike VolumeMute.

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.

Common
val Info: Key

Info key.

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

Common
val ChannelUp: Key

Channel up key.

On TV remotes, increments the television channel.

Common
val ChannelDown: Key

Channel down key.

On TV remotes, decrements the television channel.

Common
val ZoomIn: Key

Zoom in key.

Common
val ZoomOut: Key

Zoom out key.

Common
val Tv: Key

TV key.

On TV remotes, switches to viewing live TV.

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.

Common
val Guide: Key

Guide key.

On TV remotes, shows a programming guide.

Common
val Dvr: Key

DVR key.

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

Common
val Bookmark: Key

Bookmark key.

On some TV remotes, bookmarks content or web pages.

Common
val Captions: Key

Toggle captions key.

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

Common
val Settings: Key

Settings key.

Starts the system settings activity.

Common
val TvPower: Key

TV power key.

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

Common
val TvInput: Key

TV input key.

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

Common
val SetTopBoxPower: Key

Set-top-box power key.

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

Common
val SetTopBoxInput: Key

Set-top-box input key.

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

Common
val AvReceiverPower: Key

A/V Receiver power key.

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

Common
val AvReceiverInput: Key

A/V Receiver input key.

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

Common
val ProgramRed: Key

Red "programmable" key.

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

Common
val ProgramGreen: Key

Green "programmable" key.

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

Common
val ProgramYellow: Key

Yellow "programmable" key.

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

Common
val ProgramBlue: Key

Blue "programmable" key.

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

Common
val AppSwitch: Key

App switch key.

Should bring up the application switcher dialog.

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.

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.

Common
val Toggle2D3D: Key

3D Mode key.

Toggles the display between 2D and 3D mode.

Common
val Contacts: Key

Contacts special function key.

Used to launch an address book application.

Common
val Calendar: Key

Calendar special function key.

Used to launch a calendar application.

Common
val Music: Key

Music special function key.

Used to launch a music player application.

Common
val Calculator: Key

Calculator special function key.

Used to launch a calculator application.

Common
val ZenkakuHankaru: Key

Japanese full-width / half-width key.

Common
val Eisu: Key

Japanese alphanumeric key.

Common
val Muhenkan: Key

Japanese non-conversion key.

Common
val Henkan: Key

Japanese conversion key.

Common
val KatakanaHiragana: Key

Japanese katakana / hiragana key.

Common
val Yen: Key

Japanese Yen key.

Common
val Ro: Key

Japanese Ro key.

Common
val Kana: Key

Japanese kana key.

Common
val Assist: Key

Assist key.

Launches the global assist activity. Not delivered to applications.

Common
val BrightnessDown: Key

Brightness Down key.

Adjusts the screen brightness down.

Common
val BrightnessUp: Key

Brightness Up key.

Adjusts the screen brightness up.

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.

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.

Common
val SoftSleep: Key

Put device to sleep unless a wakelock is held.

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.

Common
val LastChannel: Key

Last Channel key.

Goes to the last viewed channel.

Common
val TvDataService: Key

TV data service key.

Displays data services like weather, sports.

Common
val VoiceAssist: Key

Voice Assist key.

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

Common
val TvRadioService: Key

Radio key.

Toggles TV service / Radio service.

Common
val TvTeletext: Key

Teletext key.

Displays Teletext service.

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.

Common
val TvTerrestrialAnalog: Key

Analog Terrestrial key.

Switches to analog terrestrial broadcast service.

Common
val TvTerrestrialDigital: Key

Digital Terrestrial key.

Switches to digital terrestrial broadcast service.

Common
val TvSatellite: Key

Satellite key.

Switches to digital satellite broadcast service.

Common
val TvSatelliteBs: Key

BS key.

Switches to BS digital satellite broadcasting service available in Japan.

Common
val TvSatelliteCs: Key

CS key.

Switches to CS digital satellite broadcasting service available in Japan.

Common
val TvSatelliteService: Key

BS/CS key.

Toggles between BS and CS digital satellite services.

Common
val TvNetwork: Key

Toggle Network key.

Toggles selecting broadcast services.

Common
val TvAntennaCable: Key

Antenna/Cable key.

Toggles broadcast input source between antenna and cable.

Common
val TvInputHdmi1: Key

HDMI #1 key.

Switches to HDMI input #1.

Common
val TvInputHdmi2: Key

HDMI #2 key.

Switches to HDMI input #2.

Common
val TvInputHdmi3: Key

HDMI #3 key.

Switches to HDMI input #3.

Common
val TvInputHdmi4: Key

HDMI #4 key.

Switches to HDMI input #4.

Common
val TvInputComposite1: Key

Composite #1 key.

Switches to composite video input #1.

Common
val TvInputComposite2: Key

Composite #2 key.

Switches to composite video input #2.

Common
val TvInputComponent1: Key

Component #1 key.

Switches to component video input #1.

Common
val TvInputComponent2: Key

Component #2 key.

Switches to component video input #2.

Common
val TvInputVga1: Key

VGA #1 key.

Switches to VGA (analog RGB) input #1.

Common
val TvAudioDescription: Key

Audio description key.

Toggles audio description off / on.

Common
val TvAudioDescriptionMixingVolumeUp: Key

Audio description mixing volume up key.

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

Common
val TvAudioDescriptionMixingVolumeDown: Key

Audio description mixing volume down key.

Lessen audio description volume as compared with normal audio volume.

Common
val TvZoomMode: Key

Zoom mode key.

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

Common
val TvContentsMenu: Key

Contents menu key.

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

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.

Common
val TvTimerProgramming: Key

Timer programming key.

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

Common
val StemPrimary: Key

Primary stem key for Wearables.

Main power/reset button.

Common
val Stem1: Key

Generic stem key 1 for Wearables.

Common
val Stem2: Key

Generic stem key 2 for Wearables.

Common
val Stem3: Key

Generic stem key 3 for Wearables.

Common
val AllApps: Key

Show all apps.

Common
val Refresh: Key

Refresh key.

Common
val ThumbsUp: Key

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

Common
val ThumbsDown: Key

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

Common
val ProfileSwitch: Key

Used to switch current account that is consuming content. May be consumed by system to set account globally.

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

Android
actual val Unknown = Key(KeyEvent.KEYCODE_UNKNOWN)

Unknown key.

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.

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.

Android
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
actual val Home = Key(KeyEvent.KEYCODE_HOME)

System Home key.

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

Android
actual val SystemHome = Key(KeyEvent.KEYCODE_HOME)

System Home key.

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

Android
actual val Back = Key(KeyEvent.KEYCODE_BACK)

Back key.

Android
actual val Help = Key(KeyEvent.KEYCODE_HELP)

Help key.

Android
actual val NavigatePrevious = Key(KeyEvent.KEYCODE_NAVIGATE_PREVIOUS)

Navigate to previous key.

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

Android
actual val NavigateNext = Key(KeyEvent.KEYCODE_NAVIGATE_NEXT)

Navigate to next key.

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

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.

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.

Android
actual val SystemNavigationUp = Key(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_UP)

Consumed by the system for navigation up.

Android
actual val SystemNavigationDown = Key(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_DOWN)

Consumed by the system for navigation down.

Android
actual val SystemNavigationLeft = Key(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_LEFT)

Consumed by the system for navigation left.

Android
actual val SystemNavigationRight = Key(KeyEvent.KEYCODE_SYSTEM_NAVIGATION_RIGHT)

Consumed by the system for navigation right.

Android
actual val Call = Key(KeyEvent.KEYCODE_CALL)

Call key.

Android
actual val EndCall = Key(KeyEvent.KEYCODE_ENDCALL)

End Call key.

Android
actual val DirectionUp = Key(KeyEvent.KEYCODE_DPAD_UP)

Up Arrow Key / Directional Pad Up key.

May also be synthesized from trackball motions.

Android
actual val DirectionDown = Key(KeyEvent.KEYCODE_DPAD_DOWN)

Down Arrow Key / Directional Pad Down key.

May also be synthesized from trackball motions.

Android
actual val DirectionLeft = Key(KeyEvent.KEYCODE_DPAD_LEFT)

Left Arrow Key / Directional Pad Left key.

May also be synthesized from trackball motions.

Android
actual val DirectionRight = Key(KeyEvent.KEYCODE_DPAD_RIGHT)

Right Arrow Key / Directional Pad Right key.

May also be synthesized from trackball motions.

Android
actual val DirectionCenter = Key(KeyEvent.KEYCODE_DPAD_CENTER)

Center Arrow Key / Directional Pad Center key.

May also be synthesized from trackball motions.

Android
actual val DirectionUpLeft = Key(KeyEvent.KEYCODE_DPAD_UP_LEFT)

Directional Pad Up-Left.

Android
actual val DirectionDownLeft = Key(KeyEvent.KEYCODE_DPAD_DOWN_LEFT)

Directional Pad Down-Left.

Android
actual val DirectionUpRight = Key(KeyEvent.KEYCODE_DPAD_UP_RIGHT)

Directional Pad Up-Right.

Android
actual val DirectionDownRight = Key(KeyEvent.KEYCODE_DPAD_DOWN_RIGHT)

Directional Pad Down-Right.

Android
actual val VolumeUp = Key(KeyEvent.KEYCODE_VOLUME_UP)

Volume Up key.

Adjusts the speaker volume up.

Android
actual val VolumeDown = Key(KeyEvent.KEYCODE_VOLUME_DOWN)

Volume Down key.

Adjusts the speaker volume down.

Android
actual val Power = Key(KeyEvent.KEYCODE_POWER)

Power key.

Android
actual val Camera = Key(KeyEvent.KEYCODE_CAMERA)

Camera key.

Used to launch a camera application or take pictures.

Android
actual val Clear = Key(KeyEvent.KEYCODE_CLEAR)

Clear key.

Android
actual val Zero = Key(KeyEvent.KEYCODE_0)

'0' key.

Android
actual val One = Key(KeyEvent.KEYCODE_1)

'1' key.

Android
actual val Two = Key(KeyEvent.KEYCODE_2)

'2' key.

Android
actual val Three = Key(KeyEvent.KEYCODE_3)

'3' key.

Android
actual val Four = Key(KeyEvent.KEYCODE_4)

'4' key.

Android
actual val Five = Key(KeyEvent.KEYCODE_5)

'5' key.

Android
actual val Six = Key(KeyEvent.KEYCODE_6)

'6' key.

Android
actual val Seven = Key(KeyEvent.KEYCODE_7)

'7' key.

Android
actual val Eight = Key(KeyEvent.KEYCODE_8)

'8' key.

Android
actual val Nine = Key(KeyEvent.KEYCODE_9)

'9' key.

Android
actual val Plus = Key(KeyEvent.KEYCODE_PLUS)

'+' key.

Android
actual val Minus = Key(KeyEvent.KEYCODE_MINUS)

'-' key.

Android
actual val Multiply = Key(KeyEvent.KEYCODE_STAR)

'*' key.

Android
actual val Equals = Key(KeyEvent.KEYCODE_EQUALS)

'=' key.

Android
actual val Pound = Key(KeyEvent.KEYCODE_POUND)

'#' key.

Android
actual val A = Key(KeyEvent.KEYCODE_A)

'A' key.

Android
actual val B = Key(KeyEvent.KEYCODE_B)

'B' key.

Android
actual val C = Key(KeyEvent.KEYCODE_C)

'C' key.

Android
actual val D = Key(KeyEvent.KEYCODE_D)

'D' key.

Android
actual val E = Key(KeyEvent.KEYCODE_E)

'E' key.

Android
actual val F = Key(KeyEvent.KEYCODE_F)

'F' key.

Android
actual val G = Key(KeyEvent.KEYCODE_G)

'G' key.

Android
actual val H = Key(KeyEvent.KEYCODE_H)

'H' key.

Android
actual val I = Key(KeyEvent.KEYCODE_I)

'I' key.

Android
actual val J = Key(KeyEvent.KEYCODE_J)

'J' key.

Android
actual val K = Key(KeyEvent.KEYCODE_K)

'K' key.

Android
actual val L = Key(KeyEvent.KEYCODE_L)

'L' key.

Android
actual val M = Key(KeyEvent.KEYCODE_M)

'M' key.

Android
actual val N = Key(KeyEvent.KEYCODE_N)

'N' key.

Android
actual val O = Key(KeyEvent.KEYCODE_O)

'O' key.

Android
actual val P = Key(KeyEvent.KEYCODE_P)

'P' key.

Android
actual val Q = Key(KeyEvent.KEYCODE_Q)

'Q' key.

Android
actual val R = Key(KeyEvent.KEYCODE_R)

'R' key.

Android
actual val S = Key(KeyEvent.KEYCODE_S)

'S' key.

Android
actual val T = Key(KeyEvent.KEYCODE_T)

'T' key.

Android
actual val U = Key(KeyEvent.KEYCODE_U)

'U' key.

Android
actual val V = Key(KeyEvent.KEYCODE_V)

'V' key.

Android
actual val W = Key(KeyEvent.KEYCODE_W)

'W' key.

Android
actual val X = Key(KeyEvent.KEYCODE_X)

'X' key.

Android
actual val Y = Key(KeyEvent.KEYCODE_Y)

'Y' key.

Android
actual val Z = Key(KeyEvent.KEYCODE_Z)

'Z' key.

Android
actual val Comma = Key(KeyEvent.KEYCODE_COMMA)

',' key.

Android
actual val Period = Key(KeyEvent.KEYCODE_PERIOD)

'.' key.

Android
actual val AltLeft = Key(KeyEvent.KEYCODE_ALT_LEFT)

Left Alt modifier key.

Android
actual val AltRight = Key(KeyEvent.KEYCODE_ALT_RIGHT)

Right Alt modifier key.

Android
actual val ShiftLeft = Key(KeyEvent.KEYCODE_SHIFT_LEFT)

Left Shift modifier key.

Android
actual val ShiftRight = Key(KeyEvent.KEYCODE_SHIFT_RIGHT)

Right Shift modifier key.

Android
actual val Tab = Key(KeyEvent.KEYCODE_TAB)

Tab key.

Android
actual val Spacebar = Key(KeyEvent.KEYCODE_SPACE)

Space key.

Android
actual val Symbol = Key(KeyEvent.KEYCODE_SYM)

Symbol modifier key.

Used to enter alternate symbols.

Android
actual val Browser = Key(KeyEvent.KEYCODE_EXPLORER)

Browser special function key.

Used to launch a browser application.

Android
actual val Envelope = Key(KeyEvent.KEYCODE_ENVELOPE)

Envelope special function key.

Used to launch a mail application.

Android
actual val Enter = Key(KeyEvent.KEYCODE_ENTER)

Enter key.

Android
actual val Backspace = Key(KeyEvent.KEYCODE_DEL)

Backspace key.

Deletes characters before the insertion point, unlike Delete.

Android
actual val Delete = Key(KeyEvent.KEYCODE_FORWARD_DEL)

Delete key.

Deletes characters ahead of the insertion point, unlike Backspace.

Android
actual val Escape = Key(KeyEvent.KEYCODE_ESCAPE)

Escape key.

Android
actual val CtrlLeft = Key(KeyEvent.KEYCODE_CTRL_LEFT)

Left Control modifier key.

Android
actual val CtrlRight = Key(KeyEvent.KEYCODE_CTRL_RIGHT)

Right Control modifier key.

Android
actual val CapsLock = Key(KeyEvent.KEYCODE_CAPS_LOCK)

Caps Lock key.

Android
actual val ScrollLock = Key(KeyEvent.KEYCODE_SCROLL_LOCK)

Scroll Lock key.

Android
actual val MetaLeft = Key(KeyEvent.KEYCODE_META_LEFT)

Left Meta modifier key.

Android
actual val MetaRight = Key(KeyEvent.KEYCODE_META_RIGHT)

Right Meta modifier key.

Android
actual val Function = Key(KeyEvent.KEYCODE_FUNCTION)

Function modifier key.

Android
actual val PrintScreen = Key(KeyEvent.KEYCODE_SYSRQ)

System Request / Print Screen key.

Android
actual val Break = Key(KeyEvent.KEYCODE_BREAK)

Break / Pause key.

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.

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.

Android
actual val Insert = Key(KeyEvent.KEYCODE_INSERT)

Insert key.

Toggles insert / overwrite edit mode.

Android
actual val Cut = Key(KeyEvent.KEYCODE_CUT)

Cut key.

Android
actual val Copy = Key(KeyEvent.KEYCODE_COPY)

Copy key.

Android
actual val Paste = Key(KeyEvent.KEYCODE_PASTE)

Paste key.

Android
actual val Grave = Key(KeyEvent.KEYCODE_GRAVE)

'`' (backtick) key.

Android
actual val LeftBracket = Key(KeyEvent.KEYCODE_LEFT_BRACKET)

'`' key.

Android
actual val RightBracket = Key(KeyEvent.KEYCODE_RIGHT_BRACKET)

'`' key.

Android
actual val Slash = Key(KeyEvent.KEYCODE_SLASH)

'/' key.

Android
actual val Backslash = Key(KeyEvent.KEYCODE_BACKSLASH)

'\' key.

Android
actual val Semicolon = Key(KeyEvent.KEYCODE_SEMICOLON)

';' key.

Android
actual val Apostrophe = Key(KeyEvent.KEYCODE_APOSTROPHE)

''' (apostrophe) key.

Android
actual val At = Key(KeyEvent.KEYCODE_AT)

'@' key.

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.

Android
actual val HeadsetHook = Key(KeyEvent.KEYCODE_HEADSETHOOK)

Headset Hook key.

Used to hang up calls and stop media.

Android
actual val Focus = Key(KeyEvent.KEYCODE_FOCUS)

Camera Focus key.

Used to focus the camera.

Android
actual val Menu = Key(KeyEvent.KEYCODE_MENU)

Menu key.

Android
actual val Notification = Key(KeyEvent.KEYCODE_NOTIFICATION)

Notification key.

Android
actual val Search = Key(KeyEvent.KEYCODE_SEARCH)

Search key.

Android
actual val PageUp = Key(KeyEvent.KEYCODE_PAGE_UP)

Page Up key.

Android
actual val PageDown = Key(KeyEvent.KEYCODE_PAGE_DOWN)

Page Down key.

Android
actual val PictureSymbols = Key(KeyEvent.KEYCODE_PICTSYMBOLS)

Picture Symbols modifier key.

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

Android
actual val SwitchCharset = Key(KeyEvent.KEYCODE_SWITCH_CHARSET)

Switch Charset modifier key.

Used to switch character sets (Kanji, Katakana).

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Android
actual val ButtonStart = Key(KeyEvent.KEYCODE_BUTTON_START)

Start Button key.

On a game controller, the button labeled Start.

Android
actual val ButtonSelect = Key(KeyEvent.KEYCODE_BUTTON_SELECT)

Select Button key.

On a game controller, the button labeled Select.

Android
actual val ButtonMode = Key(KeyEvent.KEYCODE_BUTTON_MODE)

Mode Button key.

On a game controller, the button labeled Mode.

Android
actual val Button1 = Key(KeyEvent.KEYCODE_BUTTON_1)

Generic Game Pad Button #1.

Android
actual val Button2 = Key(KeyEvent.KEYCODE_BUTTON_2)

Generic Game Pad Button #2.

Android
actual val Button3 = Key(KeyEvent.KEYCODE_BUTTON_3)

Generic Game Pad Button #3.

Android
actual val Button4 = Key(KeyEvent.KEYCODE_BUTTON_4)

Generic Game Pad Button #4.

Android
actual val Button5 = Key(KeyEvent.KEYCODE_BUTTON_5)

Generic Game Pad Button #5.

Android
actual val Button6 = Key(KeyEvent.KEYCODE_BUTTON_6)

Generic Game Pad Button #6.

Android
actual val Button7 = Key(KeyEvent.KEYCODE_BUTTON_7)

Generic Game Pad Button #7.

Android
actual val Button8 = Key(KeyEvent.KEYCODE_BUTTON_8)

Generic Game Pad Button #8.

Android
actual val Button9 = Key(KeyEvent.KEYCODE_BUTTON_9)

Generic Game Pad Button #9.

Android
actual val Button10 = Key(KeyEvent.KEYCODE_BUTTON_10)

Generic Game Pad Button #10.

Android
actual val Button11 = Key(KeyEvent.KEYCODE_BUTTON_11)

Generic Game Pad Button #11.

Android
actual val Button12 = Key(KeyEvent.KEYCODE_BUTTON_12)

Generic Game Pad Button #12.

Android
actual val Button13 = Key(KeyEvent.KEYCODE_BUTTON_13)

Generic Game Pad Button #13.

Android
actual val Button14 = Key(KeyEvent.KEYCODE_BUTTON_14)

Generic Game Pad Button #14.

Android
actual val Button15 = Key(KeyEvent.KEYCODE_BUTTON_15)

Generic Game Pad Button #15.

Android
actual val Button16 = Key(KeyEvent.KEYCODE_BUTTON_16)

Generic Game Pad Button #16.

Android
actual val Forward = Key(KeyEvent.KEYCODE_FORWARD)

Forward key.

Navigates forward in the history stack. Complement of Back.

Android
actual val F1 = Key(KeyEvent.KEYCODE_F1)

F1 key.

Android
actual val F2 = Key(KeyEvent.KEYCODE_F2)

F2 key.

Android
actual val F3 = Key(KeyEvent.KEYCODE_F3)

F3 key.

Android
actual val F4 = Key(KeyEvent.KEYCODE_F4)

F4 key.

Android
actual val F5 = Key(KeyEvent.KEYCODE_F5)

F5 key.

Android
actual val F6 = Key(KeyEvent.KEYCODE_F6)

F6 key.

Android
actual val F7 = Key(KeyEvent.KEYCODE_F7)

F7 key.

Android
actual val F8 = Key(KeyEvent.KEYCODE_F8)

F8 key.

Android
actual val F9 = Key(KeyEvent.KEYCODE_F9)

F9 key.

Android
actual val F10 = Key(KeyEvent.KEYCODE_F10)

F10 key.

Android
actual val F11 = Key(KeyEvent.KEYCODE_F11)

F11 key.

Android
actual val F12 = Key(KeyEvent.KEYCODE_F12)

F12 key.

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.

Android
actual val NumPad0 = Key(KeyEvent.KEYCODE_NUMPAD_0)

Numeric keypad '0' key.

Android
actual val NumPad1 = Key(KeyEvent.KEYCODE_NUMPAD_1)

Numeric keypad '1' key.

Android
actual val NumPad2 = Key(KeyEvent.KEYCODE_NUMPAD_2)

Numeric keypad '2' key.

Android
actual val NumPad3 = Key(KeyEvent.KEYCODE_NUMPAD_3)

Numeric keypad '3' key.

Android
actual val NumPad4 = Key(KeyEvent.KEYCODE_NUMPAD_4)

Numeric keypad '4' key.

Android
actual val NumPad5 = Key(KeyEvent.KEYCODE_NUMPAD_5)

Numeric keypad '5' key.

Android
actual val NumPad6 = Key(KeyEvent.KEYCODE_NUMPAD_6)

Numeric keypad '6' key.

Android
actual val NumPad7 = Key(KeyEvent.KEYCODE_NUMPAD_7)

Numeric keypad '7' key.

Android
actual val NumPad8 = Key(KeyEvent.KEYCODE_NUMPAD_8)

Numeric keypad '8' key.

Android
actual val NumPad9 = Key(KeyEvent.KEYCODE_NUMPAD_9)

Numeric keypad '9' key.

Android
actual val NumPadDivide = Key(KeyEvent.KEYCODE_NUMPAD_DIVIDE)

Numeric keypad '/' key (for division).

Android
actual val NumPadMultiply = Key(KeyEvent.KEYCODE_NUMPAD_MULTIPLY)

Numeric keypad '*' key (for multiplication).

Android
actual val NumPadSubtract = Key(KeyEvent.KEYCODE_NUMPAD_SUBTRACT)

Numeric keypad '-' key (for subtraction).

Android
actual val NumPadAdd = Key(KeyEvent.KEYCODE_NUMPAD_ADD)

Numeric keypad '+' key (for addition).

Android
actual val NumPadDot = Key(KeyEvent.KEYCODE_NUMPAD_DOT)

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

Android
actual val NumPadComma = Key(KeyEvent.KEYCODE_NUMPAD_COMMA)

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

Android
actual val NumPadEnter = Key(KeyEvent.KEYCODE_NUMPAD_ENTER)

Numeric keypad Enter key.

Android
actual val NumPadEquals = Key(KeyEvent.KEYCODE_NUMPAD_EQUALS)

Numeric keypad '=' key.

Android
actual val NumPadLeftParenthesis = Key(KeyEvent.KEYCODE_NUMPAD_LEFT_PAREN)

Numeric keypad '(' key.

Android
actual val NumPadRightParenthesis = Key(KeyEvent.KEYCODE_NUMPAD_RIGHT_PAREN)

Numeric keypad ')' key.

Android
actual val MediaPlay = Key(KeyEvent.KEYCODE_MEDIA_PLAY)

Play media key.

Android
actual val MediaPause = Key(KeyEvent.KEYCODE_MEDIA_PAUSE)

Pause media key.

Android
actual val MediaPlayPause = Key(KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE)

Play/Pause media key.

Android
actual val MediaStop = Key(KeyEvent.KEYCODE_MEDIA_STOP)

Stop media key.

Android
actual val MediaRecord = Key(KeyEvent.KEYCODE_MEDIA_RECORD)

Record media key.

Android
actual val MediaNext = Key(KeyEvent.KEYCODE_MEDIA_NEXT)

Play Next media key.

Android
actual val MediaPrevious = Key(KeyEvent.KEYCODE_MEDIA_PREVIOUS)

Play Previous media key.

Android
actual val MediaRewind = Key(KeyEvent.KEYCODE_MEDIA_REWIND)

Rewind media key.

Android
actual val MediaFastForward = Key(KeyEvent.KEYCODE_MEDIA_FAST_FORWARD)

Fast Forward media key.

Android
actual val MediaClose = Key(KeyEvent.KEYCODE_MEDIA_CLOSE)

Close media key.

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

Android
actual val MediaAudioTrack = Key(KeyEvent.KEYCODE_MEDIA_AUDIO_TRACK)

Audio Track key.

Switches the audio tracks.

Android
actual val MediaEject = Key(KeyEvent.KEYCODE_MEDIA_EJECT)

Eject media key.

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

Android
actual val MediaTopMenu = Key(KeyEvent.KEYCODE_MEDIA_TOP_MENU)

Media Top Menu key.

Goes to the top of media menu.

Android
actual val MediaSkipForward = Key(KeyEvent.KEYCODE_MEDIA_SKIP_FORWARD)

Skip forward media key.

Android
actual val MediaSkipBackward = Key(KeyEvent.KEYCODE_MEDIA_SKIP_BACKWARD)

Skip backward media key.

Android
actual val MediaStepForward = Key(KeyEvent.KEYCODE_MEDIA_STEP_FORWARD)

Step forward media key.

Steps media forward, one frame at a time.

Android
actual val MediaStepBackward = Key(KeyEvent.KEYCODE_MEDIA_STEP_BACKWARD)

Step backward media key.

Steps media backward, one frame at a time.

Android
actual val MicrophoneMute = Key(KeyEvent.KEYCODE_MUTE)

Mute key.

Mutes the microphone, unlike VolumeMute.

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.

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.

Android
actual val ChannelUp = Key(KeyEvent.KEYCODE_CHANNEL_UP)

Channel up key.

On TV remotes, increments the television channel.

Android
actual val ChannelDown = Key(KeyEvent.KEYCODE_CHANNEL_DOWN)

Channel down key.

On TV remotes, decrements the television channel.

Android
actual val ZoomIn = Key(KeyEvent.KEYCODE_ZOOM_IN)

Zoom in key.

Android
actual val ZoomOut = Key(KeyEvent.KEYCODE_ZOOM_OUT)

Zoom out key.

Android
actual val Tv = Key(KeyEvent.KEYCODE_TV)

TV key.

On TV remotes, switches to viewing live TV.

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.

Android
actual val Guide = Key(KeyEvent.KEYCODE_GUIDE)

Guide key.

On TV remotes, shows a programming guide.

Android
actual val Dvr = Key(KeyEvent.KEYCODE_DVR)

DVR key.

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

Android
actual val Bookmark = Key(KeyEvent.KEYCODE_BOOKMARK)

Bookmark key.

On some TV remotes, bookmarks content or web pages.

Android
actual val Captions = Key(KeyEvent.KEYCODE_CAPTIONS)

Toggle captions key.

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

Android
actual val Settings = Key(KeyEvent.KEYCODE_SETTINGS)

Settings key.

Starts the system settings activity.

Android
actual val TvPower = Key(KeyEvent.KEYCODE_TV_POWER)

TV power key.

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

Android
actual val TvInput = Key(KeyEvent.KEYCODE_TV_INPUT)

TV input key.

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

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.

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.

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.

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.

Android
actual val ProgramRed = Key(KeyEvent.KEYCODE_PROG_RED)

Red "programmable" key.

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

Android
actual val ProgramGreen = Key(KeyEvent.KEYCODE_PROG_GREEN)

Green "programmable" key.

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

Android
actual val ProgramYellow = Key(KeyEvent.KEYCODE_PROG_YELLOW)

Yellow "programmable" key.

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

Android
actual val ProgramBlue = Key(KeyEvent.KEYCODE_PROG_BLUE)

Blue "programmable" key.

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

Android
actual val AppSwitch = Key(KeyEvent.KEYCODE_APP_SWITCH)

App switch key.

Should bring up the application switcher dialog.

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.

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.

Android
actual val Toggle2D3D = Key(KeyEvent.KEYCODE_3D_MODE)

3D Mode key.

Toggles the display between 2D and 3D mode.

Android
actual val Contacts = Key(KeyEvent.KEYCODE_CONTACTS)

Contacts special function key.

Used to launch an address book application.

Android
actual val Calendar = Key(KeyEvent.KEYCODE_CALENDAR)

Calendar special function key.

Used to launch a calendar application.

Android
actual val Music = Key(KeyEvent.KEYCODE_MUSIC)

Music special function key.

Used to launch a music player application.

Android
actual val Calculator = Key(KeyEvent.KEYCODE_CALCULATOR)

Calculator special function key.

Used to launch a calculator application.

Android
actual val ZenkakuHankaru = Key(KeyEvent.KEYCODE_ZENKAKU_HANKAKU)

Japanese full-width / half-width key.

Android
actual val Eisu = Key(KeyEvent.KEYCODE_EISU)

Japanese alphanumeric key.

Android
actual val Muhenkan = Key(KeyEvent.KEYCODE_MUHENKAN)

Japanese non-conversion key.

Android
actual val Henkan = Key(KeyEvent.KEYCODE_HENKAN)

Japanese conversion key.

Android
actual val KatakanaHiragana = Key(KeyEvent.KEYCODE_KATAKANA_HIRAGANA)

Japanese katakana / hiragana key.

Android
actual val Yen = Key(KeyEvent.KEYCODE_YEN)

Japanese Yen key.

Android
actual val Ro = Key(KeyEvent.KEYCODE_RO)

Japanese Ro key.

Android
actual val Kana = Key(KeyEvent.KEYCODE_KANA)

Japanese kana key.

Android
actual val Assist = Key(KeyEvent.KEYCODE_ASSIST)

Assist key.

Launches the global assist activity. Not delivered to applications.

Android
actual val BrightnessDown = Key(KeyEvent.KEYCODE_BRIGHTNESS_DOWN)

Brightness Down key.

Adjusts the screen brightness down.

Android
actual val BrightnessUp = Key(KeyEvent.KEYCODE_BRIGHTNESS_UP)

Brightness Up key.

Adjusts the screen brightness up.

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.

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.

Android
actual val SoftSleep = Key(KeyEvent.KEYCODE_SOFT_SLEEP)

Put device to sleep unless a wakelock is held.

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.

Android
actual val LastChannel = Key(KeyEvent.KEYCODE_LAST_CHANNEL)

Last Channel key.

Goes to the last viewed channel.

Android
actual val TvDataService = Key(KeyEvent.KEYCODE_TV_DATA_SERVICE)

TV data service key.

Displays data services like weather, sports.

Android
actual val VoiceAssist = Key(KeyEvent.KEYCODE_VOICE_ASSIST)

Voice Assist key.

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

Android
actual val TvRadioService = Key(KeyEvent.KEYCODE_TV_RADIO_SERVICE)

Radio key.

Toggles TV service / Radio service.

Android
actual val TvTeletext = Key(KeyEvent.KEYCODE_TV_TELETEXT)

Teletext key.

Displays Teletext service.

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.

Android
actual val TvTerrestrialAnalog = Key(KeyEvent.KEYCODE_TV_TERRESTRIAL_ANALOG)

Analog Terrestrial key.

Switches to analog terrestrial broadcast service.

Android
actual val TvTerrestrialDigital = Key(KeyEvent.KEYCODE_TV_TERRESTRIAL_DIGITAL)

Digital Terrestrial key.

Switches to digital terrestrial broadcast service.

Android
actual val TvSatellite = Key(KeyEvent.KEYCODE_TV_SATELLITE)

Satellite key.

Switches to digital satellite broadcast service.

Android
actual val TvSatelliteBs = Key(KeyEvent.KEYCODE_TV_SATELLITE_BS)

BS key.

Switches to BS digital satellite broadcasting service available in Japan.

Android
actual val TvSatelliteCs = Key(KeyEvent.KEYCODE_TV_SATELLITE_CS)

CS key.

Switches to CS digital satellite broadcasting service available in Japan.

Android
actual val TvSatelliteService = Key(KeyEvent.KEYCODE_TV_SATELLITE_SERVICE)

BS/CS key.

Toggles between BS and CS digital satellite services.

Android
actual val TvNetwork = Key(KeyEvent.KEYCODE_TV_NETWORK)

Toggle Network key.

Toggles selecting broadcast services.

Android
actual val TvAntennaCable = Key(KeyEvent.KEYCODE_TV_ANTENNA_CABLE)

Antenna/Cable key.

Toggles broadcast input source between antenna and cable.

Android
actual val TvInputHdmi1 = Key(KeyEvent.KEYCODE_TV_INPUT_HDMI_1)

HDMI #1 key.

Switches to HDMI input #1.

Android
actual val TvInputHdmi2 = Key(KeyEvent.KEYCODE_TV_INPUT_HDMI_2)

HDMI #2 key.

Switches to HDMI input #2.

Android
actual val TvInputHdmi3 = Key(KeyEvent.KEYCODE_TV_INPUT_HDMI_3)

HDMI #3 key.

Switches to HDMI input #3.

Android
actual val TvInputHdmi4 = Key(KeyEvent.KEYCODE_TV_INPUT_HDMI_4)

HDMI #4 key.

Switches to HDMI input #4.

Android
actual val TvInputComposite1 = Key(KeyEvent.KEYCODE_TV_INPUT_COMPOSITE_1)

Composite #1 key.

Switches to composite video input #1.

Android
actual val TvInputComposite2 = Key(KeyEvent.KEYCODE_TV_INPUT_COMPOSITE_2)

Composite #2 key.

Switches to composite video input #2.

Android
actual val TvInputComponent1 = Key(KeyEvent.KEYCODE_TV_INPUT_COMPONENT_1)

Component #1 key.

Switches to component video input #1.

Android
actual val TvInputComponent2 = Key(KeyEvent.KEYCODE_TV_INPUT_COMPONENT_2)

Component #2 key.

Switches to component video input #2.

Android
actual val TvInputVga1 = Key(KeyEvent.KEYCODE_TV_INPUT_VGA_1)

VGA #1 key.

Switches to VGA (analog RGB) input #1.

Android
actual val TvAudioDescription = Key(KeyEvent.KEYCODE_TV_AUDIO_DESCRIPTION)

Audio description key.

Toggles audio description off / on.

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.

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.

Android
actual val TvZoomMode = Key(KeyEvent.KEYCODE_TV_ZOOM_MODE)

Zoom mode key.

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

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

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.

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.

Android
actual val StemPrimary = Key(KeyEvent.KEYCODE_STEM_PRIMARY)

Primary stem key for Wearables.

Main power/reset button.

Android
actual val Stem1 = Key(KeyEvent.KEYCODE_STEM_1)

Generic stem key 1 for Wearables.

Android
actual val Stem2 = Key(KeyEvent.KEYCODE_STEM_2)

Generic stem key 2 for Wearables.

Android
actual val Stem3 = Key(KeyEvent.KEYCODE_STEM_3)

Generic stem key 3 for Wearables.

Android
actual val AllApps = Key(KeyEvent.KEYCODE_ALL_APPS)

Show all apps.

Android
actual val Refresh = Key(KeyEvent.KEYCODE_REFRESH)

Refresh key.

Android
actual val ThumbsUp = Key(KeyEvent.KEYCODE_THUMBS_UP)

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

Android
actual val ThumbsDown = Key(KeyEvent.KEYCODE_THUMBS_DOWN)

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

Android
actual val ProfileSwitch = Key(KeyEvent.KEYCODE_PROFILE_SWITCH)

Used to switch current account that is consuming content. May be consumed by system to set account globally.

Android
actual val NumPadDirectionUp = Key(-1000000001)

Numeric keypad Up Arrow Key. Unsupported on Android.

Android
actual val NumPadDirectionDown = Key(-1000000002)

Numeric keypad Down Arrow Key. Unsupported on Android.

Android
actual val NumPadDirectionLeft = Key(-1000000003)

Numeric keypad Left Arrow Key. Unsupported on Android.

Android
actual val NumPadDirectionRight = Key(-1000000004)

Numeric keypad Right Arrow Key. Unsupported on Android.

Android
actual val NumPadMoveHome = Key(-1000000005)

Numeric keypad Home Key. Unsupported on Android.

Android
actual val NumPadMoveEnd = Key(-1000000006)

Numeric keypad End Key. Unsupported on Android.

Android
actual val NumPadPageUp = Key(-1000000007)

Numeric keypad Page Up Key. Unsupported on Android.

Android
actual val NumPadPageDown = Key(-1000000008)

Numeric keypad Page Down Key. Unsupported on Android.

Android
actual val NumPadInsert = Key(-1000000009)

Numeric keypad Insert Key. Unsupported on Android.

Android
actual val NumPadDelete = Key(-1000000010)

Numeric keypad Delete key. Unsupported on Android.

Code Examples

KeyEventIsAltPressedSample

@Composable
fun KeyEventIsAltPressedSample() {
    Box(
        Modifier.onKeyEvent {
                if (it.isAltPressed && it.key == Key.A) {
                    println("Alt + A is pressed")
                    true
                } else {
                    false
                }
            }
            .focusable()
    )
}