Pass KNN through a public static way
works well detecting 2 keys, but fails to display the detecting result