setkeycodes: 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:

/usr/bin/setkeycodes - from package: kbd

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/setkeycodes - from package: kbd

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