I have a shell script that essentially says something like
while true; do read -r input if [\"$input\" = \"a\"]; then echo \"hello world\"
read -rsn1
Expect only one letter (and don't wait for submitting) and be silent (don't write that letter back).