The evtest is c - Input device event monitor and query tool.
root@fedora:/home/mythcat# dnf5 install evtest
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
evtest x86_64 1.35-8.fc41 fedora 63.0 KiB
Transaction Summary:
Installing: 1 package
Total size of inbound packages is 30 KiB. Need to download 30 KiB.
After this operation, 63 KiB extra will be used (install 63 KiB, remove 0 B).
...
root@fedora:/home/mythcat# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Sleep Button
/dev/input/event1: Lid Switch
/dev/input/event10: HDA Intel Line
/dev/input/event11: HDA Intel Headphone
/dev/input/event12: PixArt USB Optical Mouse
/dev/input/event2: Power Button
/dev/input/event3: AT Translated Set 2 keyboard
/dev/input/event4: SynPS/2 Synaptics TouchPad
/dev/input/event5: Video Bus
/dev/input/event6: ST LIS3LV02DL Accelerometer
/dev/input/event7: Quickstart Button 1
/dev/input/event8: HP WMI hotkeys
/dev/input/event9: HDA Intel Mic
Select the device event number [0-12]: