                          (do
                            (utils/stop-events keyboard-event-key)
                            (utils/stop-events fullscreen-key)
+                           (utils/stop-events resize-event-key)
                            (println "Control closed"))
                          (recur last-state))
           rafchan (do (utils/record-render-time v)


;; events->chan on keyboard -> println the event (check it's not duplicated)

(defn fullscreen-handler
  [canvas e]
  (when (= (.-keyCode e)

    (utils/insert-image-assets! image-assets)
    (setup-game-audio)
    (go-loop [last-state nil]
      (let [[v c] (alts! [kbd-chan rafchan control-chan resize-chan])]
        (condp = c
          resize-chan (do (resize-canvas canvas)
                          (recur last-state))
          kbd-chan (do
                     (keyboard-handler v)
                     (recur last-state))
