An appropriate response when given a compliment in Spanish, is "Gracias, muy amable!"
This is especially important if someone compliments your Spanish language skills. You don't want to sound arrogant (as in "yes, I know!") so adding the "muy amable" softens it. You are letting the person know that they are nice--and perhaps even generous--for paying you the compliment.