The AF-ON button or a custom button can be used to separate autofocus from the shutter release button. By assigning the autofocus function to a separate button, photographers can prevent the camera from refocusing with each shot, especially in continuous servo autofocus mode. This enables more control over the focusing process and helps maintain the desired focus point while shooting landscapes.