I was having that problem some time ago, after thermal mod for cpu, some keys not working properly, needs like 30 times pushing to get a response.
I think is an internal conflict with drivers. Way to solve that is open your laptop, very carefully to not hit power button with back cover, because that button it’s very very very fragile. Now, disconnect battery (it’s a connector with few thin wires), wait some minutes and reconnect it.