Robbie Keane has announced he will retire from international football following Republic of Ireland’s friendly against Oman next Wednesday.