when i play any game, keyboard stuck from time to time, (ex: "A" button still pressed by itself even if i remove my finger and doesnt stop untill i press it twice!! ex: when i chat in online game, keyboard freeze.... untill i open task manager and end the task of the game!!!)
i found some identical issues online for omen and spectre series, but no founded solution!
The only option I can see that may be worth trying is to make sure you're running the latest bios version ( F.09 Rev.A ) as it mentions 'Provides improved keyboard behavior when games are played on the system.'
If you're already running this bios, or it doesn't correct the issue, my best advice would be to contact HP regarding this if the machine is still under warranty - If needed, you can check your warranty status Here.