 
     if nextProps.skipImages is true and nextProps.skipImages isnt @props.skipImages
       @setState currentStep: 1
+
+  componentWillUnmount: ->
+    window.removeEventListener 'keydown', @onPressSpaceBar
 
   zoomImage: (preview) ->
     @setState zoomImageSrc: preview


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

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

    if @props.skipImages is true
      @setState currentStep: 1

    window.addEventListener 'keydown', @onPressSpaceBar

  componentWillReceiveProps: (nextProps) ->
    if nextProps.video isnt @props.video
      @loadCount = 0
