Add get next search key function