[i-adj 〜い → 〜く] + [verb]
[na-adj] + に + [verb]
In Japanese, adjectives can be turned into adverbs (words that modify verbs, similar to "-ly" in English) by changing their ending.
Drop the final い and add く.
Adverbs typically come before the verb they modify. They describe how an action is performed.
The adjective いい (good) is irregular. Its adverb form is よく (well), not ×いく.
The く form of い-adjectives is also used to connect to other words and in negative constructions (e.g., おおきくない大きくない "not big", やすくて安くておいしい "cheap and delicious"). As an adverb, it specifically modifies a verb to describe the manner of an action.