$bb->Input('Back');
                break;
            case 'Up':
                $bb->Input('Up');
                break;
            case 'Down':
                $bb->Input('Down');
                break;
            case 'Left':
                $bb->Input('Left');
                break;
            case 'Right':
                $bb->Input('Right');
                break;
            case 'Play':
                $bb->XBMC('Play', $value, '');
                break;
            case 'TextFieldSet':
                $bb->GUI('TextFieldSet', $value);
                break;
            default:
                break;
        }
        # Output action
        echo $action;
    } catch (Exception $e) {
    }
    # Stop rendering
    die;
}
?>