Enable/Disable input does not work!

I’ve created a custom function in a function library to enable/disable input and set input mode at will, like this:

But when I test it in the player, the input does not get disabled:
Captura de pantalla 2022-07-12 110759

I’ve tested it in multiple ways, like switching player character/pawn, putting it in a tick instead of begin play, etc, but the input never gets disabled :frowning: May this be a bug?