Android TV Remote Control

I just tried the Android TV Remote Control app in Kodi which does not recognize the Back button as Back action. Here is what is being logged when pressing the Back button:

Code:
11:33:20.129 T:18446744072362376080   DEBUG: CAndroidJoystickState::ProcessEvent(type = key, keycode = 4, action = 0): pressed
11:33:20.129 T:18446744072362376080   DEBUG: CAndroidJoystickState: setting value for button [4 | 109] to 1
11:33:20.135 T:18446744072034360208   DEBUG: Button [ 4 ] on virtual-remote pressed
11:33:20.135 T:18446744072034360208   DEBUG: Empty button map detected for game.controller.default

So I mapped the key in Settings > System Settings > Input > Configure attached controllers. I assigned the Back button of the Android TV Remote Control to the Back action in the Kodi controller profile. This seems to have done the trick. Log now looks like this:

Code:
11:51:54.577 T:18446744072360295312   DEBUG: Keyboard: scancode: 0x04, sym: 0x0008, unicode: 0x0000, modifier: 0x0
11:51:54.587 T:18446744072362376080 WARNING: CPeripheralBusAndroid: ignoring input event for unknown input device with ID 1789
11:51:54.596 T:18446744072360295312   DEBUG: OnKey: backspace (0xf008) pressed, action is Back

The other buttons (D-pad and OK) seem to work by default.