Hold left click on the ball to pick it up. Unclick it above the hoop and watch as the ball drops for a slam dunk.
Always make projects with sheer force of will.