I am making a Custom Textbox And i want to make when we focus on the custom Textbox we cant do anything

This is my code but it isnt working

local UIS = game:GetService("UserInputService")

local Toggle = false

local PT = script.Parent.Parent.PlaceHolder.Text

UIS.InputBegan:Connect(function(Input, GPE)
	if Toggle then
		GPE = true
		
		print(string.char(Input.KeyCode.Value))
		script.Parent.Text = script.Parent.Text .. string.char(Input.KeyCode.Value)
	end
end)

game:GetService("RunService").RenderStepped:Connect(function()
	if script.Parent.Text == "" then
		script.Parent.Parent.PlaceHolder.Text = PT
	else
		script.Parent.Parent.PlaceHolder.Text = ""
	end
end)

script.Parent.MouseButton1Click:Connect(function()
	if not game.ReplicatedStorage.TextBoxPlusProcessedEvent.Value then
		Toggle = not Toggle
	end
end)

Thanks