Read the sentence.

Hearing the key in the lock, the delighted dog dashed TO THE FRONT DOOR.

How is the underlined prepositional phrase used in the sentence?

as an adjectival phrase
as an adverbial phrase
as a noun phrase
as a verb phrase