As an adjective: It describes someone or something that is shy or reserved in a way that is intended to be alluring or attractive. For example:
* "She gave him a coy smile."
As an adverb: It describes a verb and indicates that something is done in a shy or reserved way. For example:
* "She smiled coyly at him."
The context of the sentence will determine which part of speech "coy" is.