How to disable all input binds for typing

Hello, I need to make console so I want to disable all other key binds from other scripts when I’m typing.
Is there anyway to do it without disabling every scrips that has input bind? //
For example I’m disabling first person controller script so player will not move around when using console but I can’t for example disable Inventory script because I need it using console.

I would create a bool for when the console is opened… and then in the scripts that use input, you just check if the bool is false, then continue