How to do SMC reset when keyboard is not working?
Yes, but in these models you technically don't need to press the power button for 5 seconds, although there's no reason not to.
Assuming you have the correct tools you can remove the bottom case, disconnect the battery for a while, reconnect it and the SMC should be reset (assuming there's no other underlying problems such as a logic board fault).
Hope this helps.