First goal was key to victory, says Ancelotti