I’m running Unity 2022.1 on a Mac, and when I initially started to test Player Movement nothing happened.
By default, it seems that this version doesn’t setup any Supported Devices on the Input System Package. This can be rectified by just adding a Keyboard device by clicking on the + dropdown, as shown near the bottom of this screenshot.