In a way that is gloomy, dark, depressing, and serious.
The man sat somberly waiting for the next bus.
The LY on an adjective like 'somber' makes it into an adverb, a word describing action.