Uh, no, why would they give you a brand new keyboard when this would be treated as a replacement in any retail scenario?
You should have gotten a new keyboard the first time, but there is no reason why they would give you a brand new one as a replacement, and it certainly doesn't do what you said in the underlined.
I believe my purchase entitles me to a new keyboard. If I never receive that product, and they replace an inferior product with an inferior product, then they have not honored the initial terms of the deal.
Ultimately, such a practice is a form of price gouging, which is illegal.