Hi, this is odd, I came across a weird HP bug, it's the combination of a hardware and software (driver) problem.
Yes, I searched all over the web, found others with the same issue, but no solution.
Behavior: the rotation of the screen/device and the position of the keyboard are both used to disable the keyboard and touchpad when in tablet mode (because in this case, the keyboard is not detachable). However, there is a bug between the hardware and software causing a key press to be pressed. No, there is no problem with the keyboard, no ribbon damage, no lines broken, no short circuit, and no key being pressed or stuck.
Whenever the screen is rotated (via software, or physically) AND whenever the computer wakes up from sleep or is turned on, the key appears pressed. All I need to do is to press any key, and everything goes back to normal. the bug is activated because of the actions described. Some users report the same key, others report a different key, no, replacing the keyboard doesn't solve the problem. Sadly, it is also a hardware problem, meaning weird things happen under Linux too.
Turns out... the whole family of HP (Pavilion or Elite) x360 2 in 1, have a colorful variety of bugs, some appear right away, some will appear eventually.
What's that? ah, yes, I'm glad you asked: no, there is no beep when I turn on the computer, I can turn it on and there is no classic "error, keypressed whatever keyboard problem", nope, it's as I explain, the problem appears whenever a routine is triggered (rotation, device unlock/session, wake). Unfortunately there is no fix, in fact, intel didn't even updated the Windows 10 driver for their own sensor software. And as far as I have read, there is no BIOS update fixing this.
I've tried diff solutions, some block the whole keyboard (that's cool), but then I need to unlock it via weird methods, but yes, while the software blocks the keyboard I don't get the insisting {{{{{{{{{{ (not all the programs offering this functionality work). SharpKeys is not doing it's job, I mean, I tried specific apps to block specific keys with no luck, EXCEPT one at US$9, I may buy it, the thing is... not only I would prefer a FREE solution, but also, a known name that makes me feel confident on using my credit card, thsi app is unknown, unknown brand too.