Welcome to the forum.
If I recall, in another thread, a Framework member mentioned that they are already looking into this.
Have you seen this personally with a FWL13?
The FWL13 I think already ignores keypresses when the lid is closed. Windows “Modern Standby” waking up the laptop can be the culprit instead.
Can I disable lid open detection?