My Ubuntu 22.04 by default wakes from "Sleep" mode with any key or mouse move or click (both wired and wireless devices). I would prefer it to wake if only a key sequence was entered and not by accidental mouse movement or keypress.
It is a desktop with B550M Aorus Pro-P motherboard.
How could I do this?
EDIT: In this question, uglic's answer and the script written by Bart van Oort helped me disable waking via all my input devices but a single keyboard. The question remaining is how can I prevent turning on the PC by accidental key presses.