Keysh runs a shell script in response to volume button presses on Android, including when the screen is off. It is aimed at users who want to automate phone actions and are comfortable writing small scripts. The script receives button events on stdin and writes commands to stdout, which the app carries out.
The app can be used to toggle the flashlight, control media playback and perform other actions, with examples linked from the project page. It is licensed under Apache-2.0 and the source code is public on GitHub. The facts provided do not state a price, so no pricing model is listed.
Alternatives to Keysh
Products that do a similar job in System & Customization.
Macrion
Screen-aware automation and auto-clicker for Android
cleanyourtv
Removes preinstalled apps from Android TV devices over Wi-Fi
ohmyzsh
Community framework for managing zsh configuration, plugins and themes
Stats
Menu bar system monitor for macOS
Rectangle
Keyboard-driven window moving and resizing for macOS
XQuartz
Open-source X Window System server for macOS
Mole
Open-source cleaner for freeing disk space on Mac and PC
Karabiner Elements
Keyboard remapping utility for macOS