SkillAgentSearch skills...

KeyTester

Test Android KeyEvent KeyCodes

Install / Use

/learn @a13ssandr0/KeyTester
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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:

Get it on Google Play

"Buy Me A Coffee"

<img src="https://raw.githubusercontent.com/aha999/DonateButtons/master/Paypal.png" width="200">

Related Skills

View on GitHub
GitHub Stars8
CategoryDevelopment
Updated6d ago
Forks5

Languages

Java

Security Score

70/100

Audited on Apr 2, 2026

No findings