Like subject headings, keywords, or key words, are words or phrases that describe the content of a resource or item record in a database. They can be words that are included in the title of a book, journal title, film, or other resource. Unlike subject headings, they are not part of any list of officiallly assigned words, or controlled vocabulary.
For example, the official subject heading in the LCSH for matters relating to cooking is "cookery." But most people looking for resources on how to prepare food will look for "cooking," not "cookery." Searching for the keyword "cooking" won't retrieve items on cookery unless that specific word "cooking" is found somewhere in the item's database record.
A drawback of using keywords instead of subject terms when searching databases is that sometimes your search will produce records for items that are unrelated to your search. You may use "cooking" to find cookbooks, but that keyword will find both of the following titles:
Cooking for grillmasters: Everything you need to know about outdoor grilling
AND
Cooking the books: Fraud in corporate accounting
Depending on what you need, both subject headings and keywords are valid ways to search databases for resources.