Adverb
In a profane manner.
he kept wondering profanely why everything bad happened to him Source: Internet
muttering profanely Source: Internet