Trying to modify custom search function in plugin to search postmeta table for keyword as well as posts table

You’ve got an instance of metakey which should be meta_key.