Return correct key length in getKey() operation