$scope.addKey = function() {
        $scope.selectedKeys.push($scope.key);
        $scope.keys = $scope.keys.filter(function(e) {
            return $scope.key !== e;
        });