Robbie Keane claimed his 50th and 51st senior goals as the Republic of Ireland beat Macedonia 2-0 in Group B.