windows 10 – Hibernate after 10 minutes of inactivity regardless of CPU Usage?

In Windows 10, I can set up the PC to hibernate after certain time of inactivity using Task Scheduler.
But this works when the CPU usage is under certain criterion: this is how Windows 10 defines inactivity.
Can I hibernate PC after certain time (such as 15 minutes) of inactivity regardless of CPU or RAM usage?
What I mean is to determine ‘inactivity’ solely by keyboard or mouse input.