KLCI extends earlier gains in line with key regional markets