Short answer is NO, you have to replace the whole top part including keyboard. To be able to get the right part you need to know what EXACTLY is your HP spectre x360 I5 ? Please use the following way to find out the model/product of your machine
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".