We are not allowed to provide "official" answers to warranty issues -- but I can tell you what process would be followed.
You would have to contact HP Customer Support to make arrangements for sending the laptop to HP. HP technicians will examine the laptop once they receive it and make a decision regarding whether or not they consider the keyboard to be defective. If they do decide that, they will replace the keyboard. If they do not decide that, they will not replace it.
This is their decision -- we have no influence on that in any way.
And, you are likely to be without the laptop for WEEKS -- as turnaroung has become very lengthy recently.
Be alert for scammers posting fake support phone numbers and/or email addresses on the community. If you think you have received a fake HP Support message, please report it to us by clicking on "Flag Post".