var names = Input.GetJoystickNames(); foreach (KeyCode kcode in Enum.GetValues(typeof(KeyCode))) { if (Input.GetKeyDown(kcode)) Debug.Log("KeyCode down: " + kcode); }