Robbie Keane has agreed a new deal with LA Galaxy that could keep him in Major League Soccer for a further three years.