How to call DisableInput function?

Hello! I have been working on a countdown for my game, and I wanna to disable player’s key input before the countdown will end. I saw on Youtube that people use function DisableInput in Blueprints. Is there some familiar function in c++?