Napoleonic Wars
The 13th returned from Gibraltar in January 1806 and Keane spent the following two years in England building up the numbers of the regiment. Having completed this, in January 1808 he was ordered to join the West Indies campaign with the 13th. They were initially stationed as garrison at Bermuda, but fought at the Invasion of Martinique in early 1809. Keane stayed on at Martinique after this, during which time he was promoted to brevet colonel on 1 January 1812. He exchanged back into the 60th on 25 June the same year. The 5th Battalion of the 60th was fighting in the Peninsular War and Keane went out to join it in October. Upon arriving he was however instead given temporary command of a brigade within 3rd Division. The army was in winter quarters and his role was mostly administrative. Keane continued with his brigade until replaced by Major-General Thomas Brisbane on 23 March 1813, at which point he finally took up the 5th Battalion of the 60th. The battalion companies were mostly split out among the divisions of the army, but Keane had his headquarters and three companies within 3rd Division.
Keane subsequently fought at the Battle of Vitoria on 21 June and the Battle of Sorauren on 28 and 30 July. He was then on 1 August given command of a brigade within the division, being the most senior battalion commander. Keane led his brigade at the Battle of Nivelle on 9 November, and then in the following year at the Battle of Orthes on 27 February, Battle of Tarbes on 20 March, and finally the Battle of Toulouse on 10 April after which the war in Europe ended. The War of 1812 in North America was still however ongoing, and in April Keane was initially planned to be part of the reinforcements sent over to fight in it. The size of this force was then reduced and Keane was not sent.
Keane was promoted to major-general on 4 June the same year. While he did not go with the main British force to North America, he was instead sent in early autumn with reinforcements to Jamaica. While travelling there he learned at Madeira that after defeat at the Battle of Baltimore and the death there of Major-General Robert Ross, the remnants of the main British force had retreated to Jamaica. Keane took command of these troops upon his arrival on 25 November and took his enlarged force to the Mississippi River where they landed on 8 December. He was then superseded in command of the army by Major-General Sir Edward Pakenham, but continued on with it. At the Battle of New Orleans on 8 January 1815 Keane commanded the left assaulting column and was severely wounded in the groin. An especially thick pair of pantaloons saved him from a possibly mortal injury. Keane spent some time recovering from the wound but was able to return to service in February. He was thus present at the capture of Fort Bowyer on 13 February, after which the Treaty of Ghent came into effect and hostilities ended. Keane was created a Knight Commander of the Order of the Bath on 2 January.
Returning to Europe, Keane missed the Battle of Waterloo but was afterwards selected as a casualty replacement in the army. On 2 July he was appointed to command the 8th Brigade, replacing Major-General Sir James Kempt who was in turn filling the gap left at 5th Division by the death of Lieutenant-General Sir Thomas Picton. When the army was reformed into the Army of Occupation in November Keane continued on with it, being given command of the 9th Brigade. The army was subsequently reduced as time went on, and on 25 April 1817 Keane's command was dissolved and he was not given another. The Duke of Wellington wrote to Keane saying that:I assure you that it was with the greatest pain that I gave the order to remove you from the Staff of this army. It will always give me the greatest pleasure to have your assistance again