Why in some of the controller example code Code (csharp): var v = Input.GetAxisRaw("Vertical"); var h = Input.GetAxisRaw("Horizontal"); is used for input for player movement and not getInputKey("w"); for forward movement for example.
Because it's much easier to write: transform.position.x += Input.GetAxis("Horizontal"); than: if (Input.GetKey("a")) transform.position.x -= 1.0; if (Input.GetKey("d")) transform.position.x += 1.0; Over and over. Especially since you can combine them too: transform.position += Vector3(Input.GetAxis("Horizontal"), 0, Input.GetAxis("Vertical")); And also this allows players to select their own controls and use joysticks, etc.
The biggest reason is that if you work through an Input Axis, end users can reconfigure their keys in the final game from the launch dialog