If you decided use the New Input System with UI you can have some problem – UI wouldn’t react if you use your custom Input Assets.
By default when you create the Player Input component (by default the field UI Input Module set to None)
If you after that create the Event System (its create automatically if you create some UI element, by example – button), It have the default value in field Action Asset (DefaultInputActions).
In this case all will work fine, but…
UI doesn’t responds with Custom Input Assets
Unity Forum