         editor.setCursorScreenPosition([0, 0])
 
       it "repeats N times", ->
-        keydown('3')
-        keydown('x')
-
+        keystroke '3x'
         expect(editor.getText()).toBe '456789abc'
 
       it "repeats NN times", ->
-        keydown('1')
-        keydown('0')
-        keydown('x')
-
+        keystroke '10x'
         expect(editor.getText()).toBe 'bc'
 
     describe "with motions", ->

        editor.setCursorScreenPosition([0, 0])

      it "repeats N times", ->
        keydown('d')
        keydown('2')
        keydown('w')

        expect(editor.getText()).toBe 'three'

    describe "in visual mode", ->

        editor.setCursorScreenPosition([0, 0])

      it "repeats movements in visual mode", ->
        keystroke 'v2w'
        expect(editor.getCursorScreenPosition()).toEqual [0, 9]

  describe "Register", ->
