Each level as it’s own blueprint, you can do that in the begin play event.
In the first level blueprint, event BeginPlay->Disable input.
In the second level blueprint, event BeginPlay->Enable input.
I’m new to Unreal, so I’ve never did this my self, actually I’ve never used the level blueprint. But by reading the documentation this seems to be possible.
I’m going to check this out.