Arrow keys don't trigger any key event when input mode is set to game + ui (or just ui)

I’m on an empty project, so this is default behavior, when input mode is set to “UI only” or “Game + UI” the arrow keys, d-pad buttons, or any keys used for UI navigation by default simply don’t trigger any action input.

I don’t really want to change my navigation keys, all I want is the game to be able to recognize input method (keyboard+mouse or gamepad) when I’m in UI input mode, so when I’m navigating a menu, the game recognizes if I’m using a keyboard or a gamepad, and I can display the proper button icon.

image
to


for example.

but when navigation keys don’t trigger anything, not even “on key down” events to override, it becomes impossible to do so.