Hi. I am a middle school student learning unity for the first time. I am making a game where a cube moves around dodging obstacles. How do I make it so the player can move with a and d OR the left and right arrows? Thank you.
Take a look at the Input System, that is very trivial to do.
https://docs.unity3d.com/Packages/com.unity.inputsystem@1.0/manual/Installation.html