The method for creating a key depends on the type of key. See the appropriate section:
Primary keys
Alternate keys
Foreign keys