You cannot change this behavior in System Settings. On newer MacBooks (especially Apple Silicon M1/M2/M3), the hardware is designed to boot or wake when any key is pressed or the trackpad is clicked. There is no way to map the power function solely to the Touch ID button
If your main issue is cleaning the keyboard without triggering inputs, don't try to shut it down. Instead, use a utility like KeyboardCleanTool. It locks all keyboard input while the Mac is on so you can wipe the keys down without typing nonsense or waking it up constantly.
If you have an older Intel Mac, you used to be able to use a terminal command
sudo nvram AutoBoot=%00
to stop auto-boot on lid open, but that doesn't stop the key-press boot on newer models.