Thank you for providing the additional information.
Your 2018 12.9-inch iPad Pro is compatible with the Magic Keyboard, so the keyboard itself should not be causing this charging issue. The fact that your husband's charger occasionally works, particularly when you reverse the USB-C connector or make several attempts, provides another useful clue. This behavior suggests a possible problem with the USB-C port, cable connection, or charging circuitry.
USB-C connectors are reversible and should work equally well in either orientation. If charging works only in one orientation, or requires repeated attempts, it could indicate dirty, damaged, or worn contacts inside the iPad's USB-C port.
Before considering hardware service, I suggest two additional tests:
- Try your husband's charging cable with your own power adapter. If possible, also try your cable with his adapter. This should help determine whether the intermittent charging is related to a particular cable or adapter.
- Test both orientations of the USB-C connector. With the iPad disconnected from the Magic Keyboard, connect a known-working charging cable directly to the iPad. If charging fails, disconnect the cable, rotate the connector 180 degrees, and reconnect it. Note whether one orientation works more reliably than the other.
I would also recommend carefully inspecting the iPad's USB-C port for accumulated debris or damaged contacts. Avoid using metal tools or liquids to clean it.
Since your iPad charges through the Magic Keyboard's Smart Connector, we know that it can still receive charging power through that alternative connection. However, this does not necessarily mean that its own USB-C port or associated circuitry is functioning correctly.
If the problem persists with multiple known-working cables and adapters, particularly if charging depends on the connector's orientation, I would recommend having Apple or an Apple Authorized Service Provider inspect the iPad's USB-C port.