In 1848, at the age of 21 he graduated MD from the University of Edinburgh and was appointed house surgeon in the Royal Infirmary of Edinburgh to James Syme (1799-1870), the Professor of Surgery.
On return to Edinburgh, Keith went into medical practice with his brother George Skene Keith (1819-1910) in Great Stuart Street.