For reference - H2N-(CH2)5-COOH is 2-aminoacetic acid
Did you catch the 5 in methylenes. It's aminocaproic acid or in IUPAC 6-aminohexanoic acid. As for the reaction, it does proceed as you suspected. KOH
is strong enough base to overcome the buffering effect of the zwitterion.