Kenny’s Gamepad Reader for Unity would help you read your keyboard, mouse, gamepad(s), and other devices (Fire TV remote, etc) on PC, Mac, Linux, Android, and WebGL.

What button am I pressing?
You press a key, button, or joystick axis, and my app would print the name of the device, and how that input would be read in Unity.