 Keen was born in Philadelphia on January 19, 1837, the son of William Williams Keen Sr. (1797–1882) and Susan Budd.He attended Philadelphia's Central High School.He studied at Brown University, where he graduated in 1859.