Re enabling controls, but not continuing to move while holding a key

This post is a similar post to this but I decided to re ask the question because it wasn’t solved.

If you hold a button while your player controls are re enabled after being disabled it doesn’t re fire key and just stops the player.

I am looking for a way to step past this and still move while holding the movement keys , after the controls are re enabled

I have been looking for ways to account for this happening but i cannot find anything about it other than the post above.

The thing i use to stop movement

local ContextActionService = game:GetService("ContextActionService")
local FREEZE_ACTION = "freezeMovement"
script.Parent:WaitForChild("Move").Changed:Connect(function(val)
	if val == false then



	ContextActionService:BindAction(
		FREEZE_ACTION,
		function() return Enum.ContextActionResult.Sink end,
		false,
		unpack(Enum.PlayerActions:GetEnumItems())
	)

	--to unfreeze
else
	ContextActionService:UnbindAction(FREEZE_ACTION)
	end
end)