     if @props.skipImages is true
       @setState currentStep: 1
 
+    window.addEventListener 'keydown', @onPressSpaceBar
+
   componentWillReceiveProps: (nextProps) ->
     if nextProps.video isnt @props.video
       @loadCount = 0


  hideLoader: ->
    @loader.classList.add 'hide'

  render: ->
    cursor = Cursor.build(@)


    if nextProps.skipImages is true and nextProps.skipImages isnt @props.skipImages
      @setState currentStep: 1

  componentWillUnmount: ->
    window.removeEventListener 'keydown', @onPressSpaceBar

  zoomImage: (preview) ->
    @setState zoomImageSrc: preview
