Remote controls navigation

Hello,

im developping an ionic v1 app for TV box witch use remote control to navigate,
first the ‘OK’ key was nt working to open links, i fix it with this script :

        $scope.href = document.activeElement.href
        if ($event.key === 'Enter' || $event.keyCode === 13) {
            index = $scope.href.lastIndexOf('#')
            $scope.href = $scope.href.substring(index + 1, $scope.href.length)
            console.log($scope.href)
            $location.path($scope.href)
        }

then im having a problem with navigating on a tabs App with arrow keys, so if the focus is on the page content, i cannot move the control to the top tabs links with the UpArrow and some other control problems too…

Anyone worked before with this ?