showkey reads from console device. If you start showkey from a subshell, you have to redirect stdin:
#!/usr/bin/env bash
/usr/bin/showkey -a </dev/stdin
showkey reads from console device. If you start showkey from a subshell, you have to redirect stdin:
#!/usr/bin/env bash
/usr/bin/showkey -a </dev/stdin