For a keel stepped mast you need a collar.
here is an example.
The collar allows you to attach blocks that are used to turn the lines from coming down the mast towards the cockpit.
You will need to decide where and how you want to run the lines. Once near the cockpit you’ll want to terminate the lines either on cleats, on self-tailing winches or line clutches. What ever you decide be sure you minimize friction. Friction will make it more difficult to trim the halyards or raise/lower the sails.
Some of us old school sailors still find value in handling the lines at the mast.