Difference between an index and a key?

A primary key by default creates a clustered index
A unique constraint/key by default creates a non-clustered index

To understand the basics of indexes/keys read this or simply google:
https://docs.microsoft.com/en-us/sql/relational-databases/indexes/create-clustered-indexes?view=sql-server-2017