Hello,
I tested the defaults on a standard desktop PC with kde.
Pressing the powerbutton raises the kde shutdown dialog, so kde takes control of the event.
No unexpected shutdown happenend when i skipped the shutdown.
I can't test any further (e.g. lidswitch, battery status).
greetings
musca