Maybe the power settings are not set up correctly in Tablet mode (I don’t know if there are seperate settings for normal and tablet mode).
Or as another responded, the button might count as a keyboard and thus is disabled in tablet mode. What happens if you press the power button when the device is awake and in tablet mode?