joy2key: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On Debian possible default full paths are:

/usr/bin/joy2key - from package: joy2key

You may install the required package with command apt-get install {package}
Error in other languages:
joy2key: bevel nie gevind nie
joy2key: comandă negăsită
joy2key: comando não encontrado
joy2key: commande introuvable
joy2key: command not found
joy2key: käsku ei ole
joy2key: không tìm thấy lệnh
joy2key: komanda nerasta
joy2key: Kommando nicht gefunden.
joy2key: kommandot finns inte
joy2key: komut yok
joy2key: nie znaleziono polecenia
joy2key: níor aimsíodh an t-ordú
joy2key: no se encontró la orden
joy2key: no s'ha trobat l'ordre
joy2key: opdracht niet gevonden
joy2key: parancs nem található
joy2key: perintah tidak ditemukan
joy2key: príkaz nenájdený
joy2key: příkaz nenalezen
joy2key: команда не найдена
joy2key: командата не е открита
joy2key: 命令找不到
joy2key: コマンドが見つかりません