You might be looking for the SetKeyboardInputEnabled, which has the same name but it's not deprecated.
We advise against using this. It may be changed or removed in a future update. Alias of Panel:SetKeyboardInputEnabled
Enables or disables the keyboard input for the panel.
1 boolean keyboardInput
Whether to enable or disable keyboard input.