controllers.controller('EditKeyController', ['$state', '$scope', 'Key', '$location', '$stateParams', function($state, $scope, Key, $location, $stateParams) {
  // Set up the current form text 'key' as key
  $scope.pair = Key.find({key: $stateParams.key});
}]);