Key was a leading attorney in Frederick, Maryland, and Washington, D.C. for many years, with an extensive real estate as well as trial practice.
President Jackson nominated Key for United States Attorney for the District of Columbia in 1833.