adds key to search