If your keyboard is triggering the wrong notes in Melodics, it’s most likely because your keyboard’s MIDI settings have been changed.
Most MIDI keyboards have transpose or scale settings that can change what MIDI notes are sent. Remapping your keyboard in settings won’t help. Try resetting your transposition settings or try factory resetting your keyboard.