public static bool GetButton(OuyaSDK.OuyaPlayer player, int buttonNum)
    {
        string keyCode = GetKeyCode(player, buttonNum);

        if (string.IsNullOrEmpty(keyCode))
        {
            return(false);
        }
        OuyaKeyCode key = (OuyaKeyCode)Enum.Parse(typeof(OuyaKeyCode), keyCode);

        return(Input.GetKey((KeyCode)(int)key));
    }
    protected KeyCode CommonGetUnityKeyCode(int buttonNum, OuyaSDK.OuyaPlayer player)
    {
        string keyCode = CommonGetKeyString(buttonNum, player);

        if (string.IsNullOrEmpty(keyCode))
        {
            return((KeyCode)(-1));
        }
        OuyaKeyCode key = (OuyaKeyCode)Enum.Parse(typeof(OuyaKeyCode), keyCode);

        return((KeyCode)(int)key);
    }