The best tool for attaching drywall is a screwgun, which can be adjusted to drive screws to the perfect depth. You can also use a cordless drill with an adjustable clutch, or you can use special drywall screw bits that fit into a drill chuck. These bits are designed to stop turning when the screw hits the desired depth.
If you prefer the “retro” approach and opt for nailing, use a drywall hammer, which has a curved face that leaves a small dimple around the nail head. And use ring-shank drywall nails. Screws should penetrate the framing at least 5/8 inch, which means that easy-to-find 1¼-inch screws will suffice for both 1/2-inch and 5/8-inch drywall. Nails should penetrate the framing at least 3/4 inch.

