     describe "the zs keybinding", ->
       zsPos = (pos) ->
         editor.setCursorBufferPosition([0, pos])
-        keystroke 'zs'
+        keystroke 'z s'
         editorElement.getScrollLeft()
 
       startPosition = NaN

        spyOn(editor, 'getCursorScreenPosition').andReturn({row: 6, column: 0})

      it "moves the screen up by one and keeps the cursor onscreen", ->
        keystroke {ctrl: 'y'}
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(90)
        expect(editor.setCursorScreenPosition).toHaveBeenCalledWith([5, 0])



    describe "the zt keybinding", ->
      it "moves the screen to position cursor at the top of the window and leave cursor in the same column", ->
        keystroke 'z t'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(960)
        expect(editor.moveToFirstCharacterOfLine).not.toHaveBeenCalled()

    describe "the z. keybinding", ->
      it "moves the screen to position cursor at the center of the window and moves cursor to first non-blank in the line", ->
        keystroke 'z .'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(900)
        expect(editor.moveToFirstCharacterOfLine).toHaveBeenCalled()

    describe "the zz keybinding", ->
      it "moves the screen to position cursor at the center of the window and leave cursor in the same column", ->
        keystroke 'z z'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(900)
        expect(editor.moveToFirstCharacterOfLine).not.toHaveBeenCalled()

    describe "the z- keybinding", ->
      it "moves the screen to position cursor at the bottom of the window and moves cursor to first non-blank in the line", ->
        keystroke 'z -'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(860)
        expect(editor.moveToFirstCharacterOfLine).toHaveBeenCalled()

    describe "the zb keybinding", ->
      it "moves the screen to position cursor at the bottom of the window and leave cursor in the same column", ->
        keystroke 'z b'
        expect(editorElement.setScrollTop).toHaveBeenCalledWith(860)
        expect(editor.moveToFirstCharacterOfLine).not.toHaveBeenCalled()

