Keys

object Keys(source)

Every Android key code (KeyEvent.KEYCODE_*) for Device.pressKey, by its name without KEYCODE_: Keys.VOLUME_UP. Names that would start with a digit keep the prefix: Keys.KEYCODE_0 is the digit 0.

Properties

Link copied to clipboard
const val A: Int = 29
Link copied to clipboard
const val ALL_APPS: Int = 284
Link copied to clipboard
const val ALT_LEFT: Int = 57
Link copied to clipboard
const val ALT_RIGHT: Int = 58
Link copied to clipboard
const val APOSTROPHE: Int = 75
Link copied to clipboard
const val APP_SWITCH: Int = 187
Link copied to clipboard
const val ASSIST: Int = 219
Link copied to clipboard
const val AT: Int = 77
Link copied to clipboard
const val AVR_INPUT: Int = 182
Link copied to clipboard
const val AVR_POWER: Int = 181
Link copied to clipboard
const val B: Int = 30
Link copied to clipboard
const val BACK: Int = 4
Link copied to clipboard
const val BACKSLASH: Int = 73
Link copied to clipboard
const val BOOKMARK: Int = 174
Link copied to clipboard
const val BREAK: Int = 121
Link copied to clipboard
const val BRIGHTNESS_DOWN: Int = 220
Link copied to clipboard
const val BRIGHTNESS_UP: Int = 221
Link copied to clipboard
const val BUTTON_1: Int = 188
Link copied to clipboard
const val BUTTON_10: Int = 197
Link copied to clipboard
const val BUTTON_11: Int = 198
Link copied to clipboard
const val BUTTON_12: Int = 199
Link copied to clipboard
const val BUTTON_13: Int = 200
Link copied to clipboard
const val BUTTON_14: Int = 201
Link copied to clipboard
const val BUTTON_15: Int = 202
Link copied to clipboard
const val BUTTON_16: Int = 203
Link copied to clipboard
const val BUTTON_2: Int = 189
Link copied to clipboard
const val BUTTON_3: Int = 190
Link copied to clipboard
const val BUTTON_4: Int = 191
Link copied to clipboard
const val BUTTON_5: Int = 192
Link copied to clipboard
const val BUTTON_6: Int = 193
Link copied to clipboard
const val BUTTON_7: Int = 194
Link copied to clipboard
const val BUTTON_8: Int = 195
Link copied to clipboard
const val BUTTON_9: Int = 196
Link copied to clipboard
const val BUTTON_A: Int = 96
Link copied to clipboard
const val BUTTON_B: Int = 97
Link copied to clipboard
const val BUTTON_C: Int = 98
Link copied to clipboard
const val BUTTON_L1: Int = 102
Link copied to clipboard
const val BUTTON_L2: Int = 104
Link copied to clipboard
const val BUTTON_MODE: Int = 110
Link copied to clipboard
const val BUTTON_R1: Int = 103
Link copied to clipboard
const val BUTTON_R2: Int = 105
Link copied to clipboard
const val BUTTON_SELECT: Int = 109
Link copied to clipboard
const val BUTTON_START: Int = 108
Link copied to clipboard
const val BUTTON_THUMBL: Int = 106
Link copied to clipboard
const val BUTTON_THUMBR: Int = 107
Link copied to clipboard
const val BUTTON_X: Int = 99
Link copied to clipboard
const val BUTTON_Y: Int = 100
Link copied to clipboard
const val BUTTON_Z: Int = 101
Link copied to clipboard
const val C: Int = 31
Link copied to clipboard
const val CALCULATOR: Int = 210
Link copied to clipboard
const val CALENDAR: Int = 208
Link copied to clipboard
const val CALL: Int = 5
Link copied to clipboard
const val CAMERA: Int = 27
Link copied to clipboard
const val CAPS_LOCK: Int = 115
Link copied to clipboard
const val CAPTIONS: Int = 175
Link copied to clipboard
const val CHANNEL_DOWN: Int = 167
Link copied to clipboard
const val CHANNEL_UP: Int = 166
Link copied to clipboard
const val CLEAR: Int = 28
Link copied to clipboard
const val CLOSE: Int = 321
Link copied to clipboard
const val COMMA: Int = 55
Link copied to clipboard
const val CONTACTS: Int = 207
Link copied to clipboard
const val COPY: Int = 278
Link copied to clipboard
const val CTRL_LEFT: Int = 113
Link copied to clipboard
const val CTRL_RIGHT: Int = 114
Link copied to clipboard
const val CUT: Int = 277
Link copied to clipboard
const val D: Int = 32
Link copied to clipboard
const val DEL: Int = 67
Link copied to clipboard
const val DEMO_APP_1: Int = 301
Link copied to clipboard
const val DEMO_APP_2: Int = 302
Link copied to clipboard
const val DEMO_APP_3: Int = 303
Link copied to clipboard
const val DEMO_APP_4: Int = 304
Link copied to clipboard
const val DICTATE: Int = 319
Link copied to clipboard
const val DO_NOT_DISTURB: Int = 322
Link copied to clipboard
const val DPAD_CENTER: Int = 23
Link copied to clipboard
const val DPAD_DOWN: Int = 20
Link copied to clipboard
const val DPAD_DOWN_LEFT: Int = 269
Link copied to clipboard
const val DPAD_DOWN_RIGHT: Int = 271
Link copied to clipboard
const val DPAD_LEFT: Int = 21
Link copied to clipboard
const val DPAD_RIGHT: Int = 22
Link copied to clipboard
const val DPAD_UP: Int = 19
Link copied to clipboard
const val DPAD_UP_LEFT: Int = 268
Link copied to clipboard
const val DPAD_UP_RIGHT: Int = 270
Link copied to clipboard
const val DVR: Int = 173
Link copied to clipboard
const val E: Int = 33
Link copied to clipboard
const val EISU: Int = 212
Link copied to clipboard
const val EMOJI_PICKER: Int = 317
Link copied to clipboard
const val ENDCALL: Int = 6
Link copied to clipboard
const val ENTER: Int = 66
Link copied to clipboard
const val ENVELOPE: Int = 65
Link copied to clipboard
const val EQUALS: Int = 70
Link copied to clipboard
const val ESCAPE: Int = 111
Link copied to clipboard
const val EXPLORER: Int = 64
Link copied to clipboard
const val F: Int = 34
Link copied to clipboard
const val F1: Int = 131
Link copied to clipboard
const val F10: Int = 140
Link copied to clipboard
const val F11: Int = 141
Link copied to clipboard
const val F12: Int = 142
Link copied to clipboard
const val F13: Int = 326
Link copied to clipboard
const val F14: Int = 327
Link copied to clipboard
const val F15: Int = 328
Link copied to clipboard
const val F16: Int = 329
Link copied to clipboard
const val F17: Int = 330
Link copied to clipboard
const val F18: Int = 331
Link copied to clipboard
const val F19: Int = 332
Link copied to clipboard
const val F2: Int = 132
Link copied to clipboard
const val F20: Int = 333
Link copied to clipboard
const val F21: Int = 334
Link copied to clipboard
const val F22: Int = 335
Link copied to clipboard
const val F23: Int = 336
Link copied to clipboard
const val F24: Int = 337
Link copied to clipboard
const val F3: Int = 133
Link copied to clipboard
const val F4: Int = 134
Link copied to clipboard
const val F5: Int = 135
Link copied to clipboard
const val F6: Int = 136
Link copied to clipboard
const val F7: Int = 137
Link copied to clipboard
const val F8: Int = 138
Link copied to clipboard
const val F9: Int = 139
Link copied to clipboard
const val FEATURED_APP_1: Int = 297
Link copied to clipboard
const val FEATURED_APP_2: Int = 298
Link copied to clipboard
const val FEATURED_APP_3: Int = 299
Link copied to clipboard
const val FEATURED_APP_4: Int = 300
Link copied to clipboard
const val FOCUS: Int = 80
Link copied to clipboard
const val FORWARD: Int = 125
Link copied to clipboard
const val FORWARD_DEL: Int = 112
Link copied to clipboard
const val FULLSCREEN: Int = 325
Link copied to clipboard
const val FUNCTION: Int = 119
Link copied to clipboard
const val G: Int = 35
Link copied to clipboard
const val GRAVE: Int = 68
Link copied to clipboard
const val GUIDE: Int = 172
Link copied to clipboard
const val H: Int = 36
Link copied to clipboard
const val HEADSETHOOK: Int = 79
Link copied to clipboard
const val HELP: Int = 259
Link copied to clipboard
const val HENKAN: Int = 214
Link copied to clipboard
const val HOME: Int = 3
Link copied to clipboard
const val I: Int = 37
Link copied to clipboard
const val INFO: Int = 165
Link copied to clipboard
const val INSERT: Int = 124
Link copied to clipboard
const val J: Int = 38
Link copied to clipboard
const val K: Int = 39
Link copied to clipboard
const val KANA: Int = 218
Link copied to clipboard
const val KATAKANA_HIRAGANA: Int = 215
Link copied to clipboard
const val KEYBOARD_BACKLIGHT_DOWN: Int = 305
Link copied to clipboard
Link copied to clipboard
const val KEYBOARD_BACKLIGHT_UP: Int = 306
Link copied to clipboard
const val KEYCODE_0: Int = 7
Link copied to clipboard
const val KEYCODE_1: Int = 8
Link copied to clipboard
const val KEYCODE_11: Int = 227
Link copied to clipboard
const val KEYCODE_12: Int = 228
Link copied to clipboard
const val KEYCODE_2: Int = 9
Link copied to clipboard
const val KEYCODE_3: Int = 10
Link copied to clipboard
const val KEYCODE_3D_MODE: Int = 206
Link copied to clipboard
const val KEYCODE_4: Int = 11
Link copied to clipboard
const val KEYCODE_5: Int = 12
Link copied to clipboard
const val KEYCODE_6: Int = 13
Link copied to clipboard
const val KEYCODE_7: Int = 14
Link copied to clipboard
const val KEYCODE_8: Int = 15
Link copied to clipboard
const val KEYCODE_9: Int = 16
Link copied to clipboard
const val L: Int = 40
Link copied to clipboard
const val LANGUAGE_SWITCH: Int = 204
Link copied to clipboard
const val LAST_CHANNEL: Int = 229
Link copied to clipboard
const val LEFT_BRACKET: Int = 71
Link copied to clipboard
const val LOCK: Int = 324
Link copied to clipboard
const val M: Int = 41
Link copied to clipboard
const val MACRO_1: Int = 313
Link copied to clipboard
const val MACRO_2: Int = 314
Link copied to clipboard
const val MACRO_3: Int = 315
Link copied to clipboard
const val MACRO_4: Int = 316
Link copied to clipboard
const val MANNER_MODE: Int = 205
Link copied to clipboard
const val MEDIA_AUDIO_TRACK: Int = 222
Link copied to clipboard
const val MEDIA_CLOSE: Int = 128
Link copied to clipboard
const val MEDIA_EJECT: Int = 129
Link copied to clipboard
const val MEDIA_FAST_FORWARD: Int = 90
Link copied to clipboard
const val MEDIA_NEXT: Int = 87
Link copied to clipboard
const val MEDIA_PAUSE: Int = 127
Link copied to clipboard
const val MEDIA_PLAY: Int = 126
Link copied to clipboard
const val MEDIA_PLAY_PAUSE: Int = 85
Link copied to clipboard
const val MEDIA_PREVIOUS: Int = 88
Link copied to clipboard
const val MEDIA_RECORD: Int = 130
Link copied to clipboard
const val MEDIA_REWIND: Int = 89
Link copied to clipboard
const val MEDIA_SKIP_BACKWARD: Int = 273
Link copied to clipboard
const val MEDIA_SKIP_FORWARD: Int = 272
Link copied to clipboard
const val MEDIA_STEP_BACKWARD: Int = 275
Link copied to clipboard
const val MEDIA_STEP_FORWARD: Int = 274
Link copied to clipboard
const val MEDIA_STOP: Int = 86
Link copied to clipboard
const val MEDIA_TOP_MENU: Int = 226
Link copied to clipboard
const val MENU: Int = 82
Link copied to clipboard
const val META_LEFT: Int = 117
Link copied to clipboard
const val META_RIGHT: Int = 118
Link copied to clipboard
const val MINUS: Int = 69
Link copied to clipboard
const val MOVE_END: Int = 123
Link copied to clipboard
const val MOVE_HOME: Int = 122
Link copied to clipboard
const val MUHENKAN: Int = 213
Link copied to clipboard
const val MUSIC: Int = 209
Link copied to clipboard
const val MUTE: Int = 91
Link copied to clipboard
const val N: Int = 42
Link copied to clipboard
const val NAVIGATE_IN: Int = 262
Link copied to clipboard
const val NAVIGATE_NEXT: Int = 261
Link copied to clipboard
const val NAVIGATE_OUT: Int = 263
Link copied to clipboard
const val NAVIGATE_PREVIOUS: Int = 260
Link copied to clipboard
const val NEW: Int = 320
Link copied to clipboard
const val NOTIFICATION: Int = 83
Link copied to clipboard
const val NUM: Int = 78
Link copied to clipboard
const val NUM_LOCK: Int = 143
Link copied to clipboard
const val NUMPAD_0: Int = 144
Link copied to clipboard
const val NUMPAD_1: Int = 145
Link copied to clipboard
const val NUMPAD_2: Int = 146
Link copied to clipboard
const val NUMPAD_3: Int = 147
Link copied to clipboard
const val NUMPAD_4: Int = 148
Link copied to clipboard
const val NUMPAD_5: Int = 149
Link copied to clipboard
const val NUMPAD_6: Int = 150
Link copied to clipboard
const val NUMPAD_7: Int = 151
Link copied to clipboard
const val NUMPAD_8: Int = 152
Link copied to clipboard
const val NUMPAD_9: Int = 153
Link copied to clipboard
const val NUMPAD_ADD: Int = 157
Link copied to clipboard
const val NUMPAD_COMMA: Int = 159
Link copied to clipboard
const val NUMPAD_DIVIDE: Int = 154
Link copied to clipboard
const val NUMPAD_DOT: Int = 158
Link copied to clipboard
const val NUMPAD_ENTER: Int = 160
Link copied to clipboard
const val NUMPAD_EQUALS: Int = 161
Link copied to clipboard
const val NUMPAD_LEFT_PAREN: Int = 162
Link copied to clipboard
const val NUMPAD_MULTIPLY: Int = 155
Link copied to clipboard
const val NUMPAD_RIGHT_PAREN: Int = 163
Link copied to clipboard
const val NUMPAD_SUBTRACT: Int = 156
Link copied to clipboard
const val O: Int = 43
Link copied to clipboard
const val P: Int = 44
Link copied to clipboard
const val PAGE_DOWN: Int = 93
Link copied to clipboard
const val PAGE_UP: Int = 92
Link copied to clipboard
const val PAIRING: Int = 225
Link copied to clipboard
const val PASTE: Int = 279
Link copied to clipboard
const val PERIOD: Int = 56
Link copied to clipboard
const val PICTSYMBOLS: Int = 94
Link copied to clipboard
const val PLUS: Int = 81
Link copied to clipboard
const val POUND: Int = 18
Link copied to clipboard
const val POWER: Int = 26
Link copied to clipboard
const val PRINT: Int = 323
Link copied to clipboard
const val PROFILE_SWITCH: Int = 288
Link copied to clipboard
const val PROG_BLUE: Int = 186
Link copied to clipboard
const val PROG_GREEN: Int = 184
Link copied to clipboard
const val PROG_RED: Int = 183
Link copied to clipboard
const val PROG_YELLOW: Int = 185
Link copied to clipboard
const val Q: Int = 45
Link copied to clipboard
const val R: Int = 46
Link copied to clipboard
const val RECENT_APPS: Int = 312
Link copied to clipboard
const val REFRESH: Int = 285
Link copied to clipboard
const val RIGHT_BRACKET: Int = 72
Link copied to clipboard
const val RO: Int = 217
Link copied to clipboard
const val S: Int = 47
Link copied to clipboard
const val SCREENSHOT: Int = 318
Link copied to clipboard
const val SCROLL_LOCK: Int = 116
Link copied to clipboard
const val SEARCH: Int = 84
Link copied to clipboard
const val SEMICOLON: Int = 74
Link copied to clipboard
const val SETTINGS: Int = 176
Link copied to clipboard
const val SHIFT_LEFT: Int = 59
Link copied to clipboard
const val SHIFT_RIGHT: Int = 60
Link copied to clipboard
const val SLASH: Int = 76
Link copied to clipboard
const val SLEEP: Int = 223
Link copied to clipboard
const val SOFT_LEFT: Int = 1
Link copied to clipboard
const val SOFT_RIGHT: Int = 2
Link copied to clipboard
const val SOFT_SLEEP: Int = 276
Link copied to clipboard
const val SPACE: Int = 62
Link copied to clipboard
const val STAR: Int = 17
Link copied to clipboard
const val STB_INPUT: Int = 180
Link copied to clipboard
const val STB_POWER: Int = 179
Link copied to clipboard
const val STEM_1: Int = 265
Link copied to clipboard
const val STEM_2: Int = 266
Link copied to clipboard
const val STEM_3: Int = 267
Link copied to clipboard
const val STEM_PRIMARY: Int = 264
Link copied to clipboard
const val STYLUS_BUTTON_PRIMARY: Int = 308
Link copied to clipboard
const val STYLUS_BUTTON_SECONDARY: Int = 309
Link copied to clipboard
const val STYLUS_BUTTON_TAIL: Int = 311
Link copied to clipboard
const val STYLUS_BUTTON_TERTIARY: Int = 310
Link copied to clipboard
const val SWITCH_CHARSET: Int = 95
Link copied to clipboard
const val SYM: Int = 63
Link copied to clipboard
const val SYSRQ: Int = 120
Link copied to clipboard
const val SYSTEM_NAVIGATION_DOWN: Int = 281
Link copied to clipboard
const val SYSTEM_NAVIGATION_LEFT: Int = 282
Link copied to clipboard
const val SYSTEM_NAVIGATION_RIGHT: Int = 283
Link copied to clipboard
const val SYSTEM_NAVIGATION_UP: Int = 280
Link copied to clipboard
const val T: Int = 48
Link copied to clipboard
const val TAB: Int = 61
Link copied to clipboard
const val THUMBS_DOWN: Int = 287
Link copied to clipboard
const val THUMBS_UP: Int = 286
Link copied to clipboard
const val TV: Int = 170
Link copied to clipboard
const val TV_ANTENNA_CABLE: Int = 242
Link copied to clipboard
const val TV_AUDIO_DESCRIPTION: Int = 252
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val TV_CONTENTS_MENU: Int = 256
Link copied to clipboard
const val TV_DATA_SERVICE: Int = 230
Link copied to clipboard
const val TV_INPUT: Int = 178
Link copied to clipboard
const val TV_INPUT_COMPONENT_1: Int = 249
Link copied to clipboard
const val TV_INPUT_COMPONENT_2: Int = 250
Link copied to clipboard
const val TV_INPUT_COMPOSITE_1: Int = 247
Link copied to clipboard
const val TV_INPUT_COMPOSITE_2: Int = 248
Link copied to clipboard
const val TV_INPUT_HDMI_1: Int = 243
Link copied to clipboard
const val TV_INPUT_HDMI_2: Int = 244
Link copied to clipboard
const val TV_INPUT_HDMI_3: Int = 245
Link copied to clipboard
const val TV_INPUT_HDMI_4: Int = 246
Link copied to clipboard
const val TV_INPUT_VGA_1: Int = 251
Link copied to clipboard
const val TV_MEDIA_CONTEXT_MENU: Int = 257
Link copied to clipboard
const val TV_NETWORK: Int = 241
Link copied to clipboard
const val TV_NUMBER_ENTRY: Int = 234
Link copied to clipboard
const val TV_POWER: Int = 177
Link copied to clipboard
const val TV_RADIO_SERVICE: Int = 232
Link copied to clipboard
const val TV_SATELLITE: Int = 237
Link copied to clipboard
const val TV_SATELLITE_BS: Int = 238
Link copied to clipboard
const val TV_SATELLITE_CS: Int = 239
Link copied to clipboard
const val TV_SATELLITE_SERVICE: Int = 240
Link copied to clipboard
const val TV_TELETEXT: Int = 233
Link copied to clipboard
const val TV_TERRESTRIAL_ANALOG: Int = 235
Link copied to clipboard
const val TV_TERRESTRIAL_DIGITAL: Int = 236
Link copied to clipboard
const val TV_TIMER_PROGRAMMING: Int = 258
Link copied to clipboard
const val TV_ZOOM_MODE: Int = 255
Link copied to clipboard
const val U: Int = 49
Link copied to clipboard
const val V: Int = 50
Link copied to clipboard
const val VIDEO_APP_1: Int = 289
Link copied to clipboard
const val VIDEO_APP_2: Int = 290
Link copied to clipboard
const val VIDEO_APP_3: Int = 291
Link copied to clipboard
const val VIDEO_APP_4: Int = 292
Link copied to clipboard
const val VIDEO_APP_5: Int = 293
Link copied to clipboard
const val VIDEO_APP_6: Int = 294
Link copied to clipboard
const val VIDEO_APP_7: Int = 295
Link copied to clipboard
const val VIDEO_APP_8: Int = 296
Link copied to clipboard
const val VOICE_ASSIST: Int = 231
Link copied to clipboard
const val VOLUME_DOWN: Int = 25
Link copied to clipboard
const val VOLUME_MUTE: Int = 164
Link copied to clipboard
const val VOLUME_UP: Int = 24
Link copied to clipboard
const val W: Int = 51
Link copied to clipboard
const val WAKEUP: Int = 224
Link copied to clipboard
const val WINDOW: Int = 171
Link copied to clipboard
const val X: Int = 52
Link copied to clipboard
const val Y: Int = 53
Link copied to clipboard
const val YEN: Int = 216
Link copied to clipboard
const val Z: Int = 54
Link copied to clipboard
const val ZENKAKU_HANKAKU: Int = 211
Link copied to clipboard
const val ZOOM_IN: Int = 168
Link copied to clipboard
const val ZOOM_OUT: Int = 169