Ignore input mode for specific key

Hi, is there a way I can still use specific input key with InputModeUIOnly? I want to use use right mouse button / escape to skip dialog in my dialog system. Currently I have bound right mouse button in player controller to a function, which calls to my dialog system to skip timer and go to next line. The problem is that I can’t find a way to ignore InputModeUIOnly for right mouse button. I also tried using ClientIgnoreMoveInput and ClientIgnoreLookInput but then I could drag my camera around and was buggy.

Any advice is welcome, thanks.

Never mind, went with a bool variable that is true when player is in conversation and checking if it is false in player controller before performing actions/movement.