Added another version of keyfind.

The existing keyfind function is renamed to keyfind2.
Added the new keyfind function which returns more strict values
in both cases success or error.