Mij --
Kentucky was a slave state until ratification of the XIII ammendment, which the state declined to do. In order to have any civil rights returned, a Confederate (deserter or not) had to take the oath of allegiance to the United States. The current-day pledge of allegiance was modeled on this oath.