xinput list | grep 'id='get
[root@localhost ~]# xinput list | grep 'id='
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ HID 04d9:0499 id=7 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=6 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Power Button id=9 [slave keyboard (3)]
[root@localhost ~]# xinput get-button-map "AT Translated Set 2 keyboard"
device has no buttons
[root@localhost ~]# xinput get-button-map "HID 04d9:0499"
1 2 3 4 5 6 7
[root@localhost ~]# xinput get-button-map "Power Button
> "
unable to find device Power Button
[root@localhost ~]# xinput get-button-map "Virtual core keyboard"
device has no buttons
[root@localhost ~]#
input