KeyTester
Test Android KeyEvent KeyCodes
Install / Use
/learn @a13ssandr0/KeyTesterREADME
KeyTester
Test the behaviour of quite any key on your Android device.
KeyTester on Android 10
<img src="https://github.com/a13ssandr0/KeyTester/blob/master/KeyTester%20Android10.jpg" width="250">Some buttons such as Home, Recent Apps (Multitasking) and Power won't be detected because the system needs them to be always available and working (e.g., when an app freezes and the user wants to terminate it), so it won't let any app intercept them (at least without some special privileges).
Each time your press a button, it will be registered and displayed in a list that you can save and share easily.
The core of the app is the method Activity.dispatchKeyEvent, from it we get a KeyEvent and then a KeyCode from one of these constants.
Note that the app will output only a numeric constant when run on APIs prior to version 12 (Android 3.1 Honeycomb), because the method keyCodeToString was implemented in that API version.
All the constants work with:
- Activity.dispatchKeyEvent
- Activity.dispatchKeyShortcutEvent
- Activity.onKeyDown
- Activity.onKeyLongPress
- Activity.onKeyMultiple
- Activity.onKeyShortcut
- Activity.onKeyUp
- any other method that deals with KeyEvents
<img src="https://raw.githubusercontent.com/aha999/DonateButtons/master/Paypal.png" width="200">
Related Skills
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。


