How to find the proper key?