I have that same remote/keyboard and love it.
Had the same problem and similar solution with some LED candles since I kept losing the little mini remote. I taught C1 from the power button on the candles' mini remote. It would turn them on, but not off. So I had to make C2 the "off" command by learning it separately.
I have absolutely no frigging clue why that works the way it does. You'd think it would be the same signal either way, but something is definitely different.
So far, that's the only device that acts like that. I programmed the power and directional buttons to control my Eufy robo vac, and those work as expected. The buttons above C1 and C2 work to toggle power (left button) and cycle thermostat settings (right button) on my electric fireplace correctly as well.