Landon Donovan, the all-time leading scorer for both the United States and in Major League Soccer, announced he would retire at the end of the season in August -- after he was left off Jurgen Klinsmann's World Cup squad.
US icon Landon Donovan started the match wearing the captain's armband and played 40 minutes. The game served as his international farewell.
The United States top the table in the six-nation final qualifying group in North and Central America with 13 points. Costa Rica are second on 11 points, and have never lost to the USA at home in a qualifier.
Omar Gonzalez scored in the first half, before Keane's pass set up U.S. national team striker Donovan on the hour mark.
Shea scored the only goal of the game 42 seconds after coming into the game as a substitute in the second half.
Landon Donovan will return to the Los Angeles Galaxy for the upcoming MLS season, but exactly when he resumes playing hasn't been decided yet.
Landon Donovan and Robbie Keane, who will try to help the Los Angeles Galaxy to a second straight MLS Cup title on Saturday, were among Major League Soccer's 2012 Best XI named on Monday.
All-time US goal leader Landon Donovan scored a hat-trick Saturday and the Americans routed Scotland 5-1 in an international football friendly that served as a World Cup qualifying tune-up.
French number one Jo-Wilfried Tsonga will bid to get the hosts off to a winning start against the United States when he plays teenager Ryan Harrison in their Davis Cup quarter-final clash here on Friday.
Landon Donovan has been picked as Everton's player of the month for January for the second time in three years.
On-loan forward Landon Donovan led Everton to their first ever FA Cup win over Fulham and a place in the fifth round on Friday, setting up both goals in his team's 2-1 win at Goodison.
Landon Donovan is returning to Everton on a two-month loan.
Los Angeles' star trio David Beckham, Robbie Keane and Landon Donovan combined for the winning goal as the Galaxy claimed the Major League Soccer title with a 1-0 win over the Houston Dynamo on Sunday.
David Beckham has been selected for the MLS Best XI for the first time, joining Los Angeles Galaxy teammates Landon Donovan, Omar Gonzalez and Todd Dunivant.
Landon Donovan has withdrawn from the US squad for Friday's friendly against France at the Stad de France, preferring to train with the Los Angeles Galaxy for the MLS final against Houston on November 20.
Mike Magee scored the go-ahead goal on a pass from David Beckham in the 58th minute, and Landon Donovan and Robbie Keane also scored as the Los Angeles Galaxy advanced to the MLS Cup final.
David Beckham assisted on Landon Donovan's goal and then scored the tiebreaker on a corner kick to help the Los Angeles Galaxy beat the Chicago Fire 2-1 on Saturday night.
Landon Donovan scored twice in under 3 minutes, David Beckham had a goal off a free kick, and the Los Angeles Galaxy beat Sporting Kansas City 4-1 on Saturday night.