HOW TO SOLVE THIS PROBLEM (argumentexception input axis horizontal is not setup)
The names and setting of the axes used for input are located at Edit/Project Setting/Input Manager.
You have spelt it wrong, should be “Horizontal” instead of “horizontal” wherever you are calling it from,