The melody has a lot of questionable note choices. Just because a note is "in key" doesn't mean that it's properly contextualized in the progression, if that makes any sense. First of all, the detune is a little too strong. Second, consider working more to highlight the color tones of each chord in your melody.