From the reference to black and white keys in the thread's title, I'm wondering if you mean that the notes or keys got shifted a bit when the keyboard was repaired to fix the "dead" key, such that the "higher" black keys are now playing notes which should be played by the "lower" white keys?
If that's what you're trying to say, then it's possible that the key assemblies didn't get put back into their correct positions when the keyboard was put back together, in which case you should take it back apart (or take it back to whoever repaired it for you), put the key assemblies back in correctly, and close up the keyboard again.
A given model of keyboard should have the keys in a particular order or pattern, and if the keys get rearranged somehow then they won't play the notes they were intended to.
For example, a 61-note, 49-note, or 37-note keyboard usually has its keys in the following order:
| C | C# | D | D# | E | F | F# | G | G# | A | A# | B | C |
As far as I know, a 76-note keyboard usually has its keys in the following order, which looks like a mirror image of a piano's keyboard in terms of how the black keys are grouped-- that is, the number of black keys per group is 3, 2, 3, 2, 3, 2, etc., ending with 3, 2, 1, whereas a piano's black keys are grouped 1, 2, 3, 2, 3, 2, 3, etc., ending with 2, 3:
| E | F | F# | G | G# | A | A# | B | C | C# | D | D# | E | F | F# | G |
And an 88-note keyboard should have its keys in the following order:
| A | A# | B | C | C# | D | D# | E | F | F# | G | G# | A | A# | B | C |
However, different makes and models might not follow those patterns-- for instance, they might start with F rather than E, or a 76-note keyboard might start with A and end with C like a piano's keyboard but minus one octave-- so you need to pay attention to the order used by the specific make and model of keyboard that you have.
Depending on the make and model, the key assemblies might be individual keys, or groups of keys. If they're in groups of keys, they might be in a couple of different groups, such as one group with 3 white keys and gaps for 2 black keys, and another group with 4 white keys and gaps for 3 black keys. In that case, it's possible that the key assemblies got put back into the following incorrect order, where the extra white key-- which is supposed to be C--is at the end where F would be:
| F | F# | G | G# | A | A# | B | C | C# | D | D# | E | F |
Or they might have been put back into the following incorrect order, where the extra white key is at the beginning where E would be:
| E | F | F# | G | G# | A | A# | B | C | C# | D | D# | E |
In any case, if this sort of "mixed-up keys" predicament is what you were trying to describe, then the only solution is to take the keyboard apart again and restore the key assemblies to their correct positions.