The built-in (or legacy) input system in Unity can be used to react to input from the keyboard, mouse or gamepad/joystick. In this video we’ll see different ways of gathering and making use of that input.
Find the code here: https://github.com/GameDevEducation/DevEssential_LegacyInput.git