<br />
On March 8, 1838, a special election was held in to fill a vacancy left by the resignation of Henry A. P. Muhlenberg (D) on February 9, 1838.
Keim took his seat on March 17, 1838 during the 2nd session of the 25th Congress.