Spontaneous symmetry breaking and trapping of temporal Kerr cavity solitons by pulsed or amplitude-modulated driving fields