First install with package manager
apt install lirc kodi inputlirc ir-keytable
Get all input devices
cat /proc/bus/input/devices
Get more information about infrared device
udevadm info -a -p $(udevadm info -q path -n /dev/input/event6)
Test to see input from remote (must make sure lirc is not running and both devices set to none with dpkg-reconfigure lirc
)