Enable/Disabling Hardware Keyboard in iOS Simulator

Hi, community. I’m currently running detox test for iOS test in my pipeline. My tests need the software keyboard NOT popup when entering text, so I tried to tweak the ConnectHardwareKeyboard value in the preferences plist. That didn’t work, at least not in XCode 14. I VNCed inside and observed that no matter how do i change the value in the plist, and shutdown/reboot the device, the change won’t take effect. How ever, if i toggle it from the UI, it will indeed change the value stored in the plist and have an effect immediately. So how do I perform a similar behavior ? How do I change the value of ConnectHardwareKeyboard and make it take effect?