Maybe that will help. It works with T-vK/ESP32-BLE-Keyboard.
You can also include your own code blocks in UIFlow blocky/python.

https://shuzo-kino.hateblo.jp/entry/2022/04/06/235900