Input Keyevent in fastboot mode?
Unfortunately, no adb command works in Fastboot mode (or bootloader). The only way to communicate with a device in Fastboot mode is fastboot.

In your case, you should try finding a replacement key for the non-working one, or you're out of luck.