Honestly, it was too convoluted for me to figure out why it was doing what it was doing. Right off I saw you were trying to make while() loops do for() loop work. Also that assignment of keyA[i] to...