Bug 1020779 - Adjust the key alignment for the bottom row of keyboard.

In correct indent since you moved out the `afterSwitch` function.

Should be 

    manager.switchCurrentLayout('spaceLayout').then(function() {
      ...
    }).then(done, done);

(remove the onReject callback function)