public static ControlKey stringToControlKey(String key)
    {
        switch(key)
        {
            case "input.up": return ControlKey.Up;
            case "input.down": return ControlKey.Down;
            case "input.left": return ControlKey.Left;
            case "input.right": return ControlKey.Right;
            case "input.select": return ControlKey.Select;
            case "input.back": return ControlKey.Back;
            case "input.menu": return ControlKey.Menu;
            case "input.forcequit": return ControlKey.ForceQuit;
        }

        return null;
    }