On 13 November 1811 Keene matriculated at Sidney Sussex College, Cambridge, where he graduated in 1815.
In 1824 Keene became professor of Arabic and Persian at the East India College, Haileybury, where he was later appointed registrar.