How to make UIS ignore Chat?

How can I make User Input Service ignore chat? Like if I press T while typing.

The second parameter of UserInputService.InputBegan has a BoolValue which detects if the key pressed was also related to the game engine detected

UserInputService.InputBegan:Connect(function(Input, Chatted) --I reference it as "Chatted" as the most simplest example
    if Chatted then --If this user has typed something while chatting, this would be true
        return --This will end the InputBegan function early

    -- Now, you can continue your code here

The second parameter is supposed to help gameProcessed

...InputBegan:Connect(function(input, gameProcessed)
if (not gameprocess) then
         -- Insert code here