How to Disable All inputs?

I was thinking about this, maybe a boolean configured in ESC will solve this problem…thanks a lot