working alpha

bug keyToCheck is 1 to far