At outbreak of the American Civil War, he was living in Philadelphia, and working for the Baltimore and Ohio Railroad. He left his position there and moved to Wheeling to take command of the 1st Virginia Infantry, a Federal volunteer three-months regiment, and was appointed as its colonel.[1][2] His first service was at Philippi, where he captured the Confederate camp equipage and was himself badly wounded. He was promoted to brigadier general of volunteers on August 5, 1861, backdated to May, and was victorious at Romney and Blue's Gap (Hanging Rocks Pass). Afterward, Kelley commanded a division of 10,000 men in the Department of Harper's Ferry.
Kelley, along with his immediate superior Maj. Gen. George Crook, was captured by a small raiding party of Confederate partisans on February 21, 1865. Kelley was sent to a prison in Richmond, Virginia, but he and Crook were released on March 20 by a special exchange. He resigned from the army on June 1, 1865.[3]
Postwar career
After the war ended, Kelley was appointed an internal revenue collector in 1866. After serving in that role for ten years, he became the head of the Hot Springs, Arkansas, Military Reservation in 1876. In 1883, President Chester A. Arthur appointed him an examiner of pensions.
Death
Kelley died in Oakland, Maryland, and was interred in Arlington National Cemetery.[4] His grave was created by sculptor W.S. Davis and completed ca. 1861. The gravestone is made of granite (6 x 5 x 3 ft.) with a relief (2 x 2 x 6 ft.) of bronze inset on the front of the stone, just above two inscribed plaques. The relief is a bust of Kelley, who has a full goatee, mustache, and a military uniform.