Apple wireless keyboard it's always turned off at startup
So the keyboard really needs to long-press turn on again? That's weird.

But these are things I will try:

Re-Pair the keyboard. Delete it from the known bluetooth device list, and pair it again.

Test the keyboard with other Macs

Replace the battery