added get_by_key method to retrieve links by their key values