ListView and many other controls support navigation events for runtime use cases.
With mouse and keyboard, navigation actions are mapped to both the arrow keys and the WASD keys. You can delete WASD keys in the Project Settings under `Input System Package > UI > Navigate > Keyboard` to remove that support.
It is also possible to block WASD navigation events momentarily through the event system, by stopping propagation of the NavigationMoveEvent before it reaches the control. This is a more generic solution than adding an option to ListView. See more documentation about event handling here:
https://docs.unity3d.com/2020.1/Documentation/Manual/UIE-Events-Handling.html
https://docs.unity3d.com/6000.0/Documentation/Manual/UIE-Navigation-Events.html