kelley was elected as a republican to the fifty-first congress to fill the vacancy caused by the resignation of thomas ryan and served from december 2, 1889, to march 3, 1891. he died in burlington, kansas on july 24, 1897. he was interred in bowman cemetery, ottumwa, near burlington, kansas.