Lemme give yall an example, so the hotkey that triggers a function is let's say h, when the player is typing it still registers the hotkey as pressed and fires the function, how to prevent that?
The second parameter of UIS checks if the user is doing something else with the user input such as typing or clicking a button. Do the following to your keypress event will make sure you're not overriding that.
UserInputService.InputBegan:Connect(function(input, gameProcessed) if(gameProcessed) then return end -- This will not run any inputs when the player is doing something such as typing end