searchkey fucntion