adverb
An adverb modifies or describes a verb, adjective, or another adverb. 'Terribly' is an adverb in this context because it describes the manner in which something is done or the degree to which something is done.
The news of the tragedy affected everyone terribly.