I still haven’t found the debug command, but one can do something like this:
As seen at Detect if any Key on Gamepad or Keyboard is pressed = Switching Widget - Blueprint Visual Scripting - Unreal Engine Forums