getkey: 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 CentOS possible default full paths are:

/sbin/getkey - from package: initscripts

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