   '77A': doClearMemory
   #H
   '72': doNavigateHome
-  
+  '72S': doStraightenView
   
 document.addEventListener "keydown", (e)->
   keyCode = "" + e.keyCode

doNavigateHome = ->
  observer.navigateTo unity

class Debouncer
  constructor: (@timeout, @callback) ->
    @timer = null

    
  getViewCenter: ->@center
  getViewOffsetMatrix: ->@tfm
  setViewOffsetMatrix: (m) ->
    @tfm = m
    @renderGrid @tfm
  
  rebuildAt: (newCenter) ->
    @center = newCenter
