Hi @Lorefi
I leave the manual of two models that you indicate, and the part number does not match between models, that's the only information I can tell you I have never tried another keyboard on another model, if the seller offers to recover the money but does not work you can try,
Maintenance and Service Guide HP Pavilion 15- CS Laptop PC
Maintenance and Service Guide HP 15-EQ Laptop PC