Mapping Android Media Key Codes To Unity

I am trying to connect one of our Unity games to an Android remote control. The remote is using these Android media keycodes:

  • Select (D-Pad Center) KEYCODE_DPAD_CENTER

  • Play/Pause KEYCODE_MEDIA_PLAY_PAUSE

  • Rewind KEYCODE_MEDIA_REWIND

  • Fast Forward KEYCODE_MEDIA_FAST_FORWARD

Is a mapping or plug-in available that routes Android media remote input to Unity KeyCodes or a similar interface?

To add to the first answer here are some keycodes for the controller as well

Remote:
Up- KeyCode.UpArrow
Down- KeyCode.DownArrow
Left- KeyCode.LeftArrow
Right- KeyCode.DownArrow
Center Button- KeyCode.JoystickButton0
Back Button- KeyCode.Escape
Menu Button- KeyCode.Menu

Controller:
Left stick-
X axis- x axis
Y axis- y axis
Button- Keycode.JoystickButton8
Right stick-
X axis- 3rd axis
Y axis- 4th axis
Button- Keycode.JoystickButton9
Dpad-
X axis- 5th axis
Y axis- 6th axis
A- Keycode.JoystickButton0
B- Keycode.JoystickButton1
X- Keycode.JoystickButton2
Y- Keycode.JoystickButton3
L1- Keycode.JoystickButton4
R1- Keycode.JoystickButton5
L2- 13th axis
R2- 12th axis
Back Button- KeyCode.Escape
Menu Button- KeyCode.Menu

I received this from Amazon technical support:

At the moment our FireTV Remote has the following mappings in Unity3D:

FireTV Button Unity KeyCode

Up Arrow KeyCode.UpArrow

Down Arrow KeyCode.DownArrow

Left Arrow KeyCode.LeftArrow

Right Arrow KeyCode.DownArrow

Center Button KeyCode.JoystickButton0

Back button KeyCode.Escape

Menu Button KeyCode.Menu

The following buttons are not mapped in Unity and would need a plugin developed to accept input:

Play/Pause

Rewind

Fast Forward

The following are system-wide buttons and would not be mapped in 3rd party applications:

Microphone

Home