Train Them to Leave It
Place a treat in both hands. Then show them the enclosed fist with the treat inside and say, “leave it.” Let them try to get the treat and ignore the behavior. Once they stop trying, give them the treat from your other hand. Keep doing this until your dog moves away from the first fist every time you issue the “leave it” command.