us ndisplay con't move character

I built a multi screen program using Dispaly, and when I run it with switchborad, the multi screen effect is perfect. However, I cannot control my character movement and viewport rotation. In the editing mode, character movement is normal, and I found that key events can be responded to, such as when I press the F key alone to trigger it. My character movement uses the enhanced input system from the official example. Does anyone know why? Thank you very much