This is the error I get in the output and I've been trying to diagnose the issue for an hour now, I'm new to unity so this is kind of confusing to me.
Your project may be set to New Input System. From the Edit menu, go to project setting and in the player section, change the Active Input Handling to Both
.