if (typeof define !== 'function') { var define = require('amdefine')(module) }

define(function() {

  var keyboardUtil = {
    addKeyDownListener: function() {},
    addKeyUpListener: function() {}
  };

  return keyboardUtil;
});

if (typeof define !== 'function') { var define = require('amdefine')(module) }

define(function() {

  var keyboardUtil = {
    addKeyDownListener: function(fn) {
      document.addEventListener('keydown', function(evt) {
        fn(evt.keyCode);
//        evt.preventDefault();
      });
    },

    addKeyUpListener: function(fn) {
      document.addEventListener('keyup', function(evt) {
        fn(evt.keyCode);
      });
    }
  };

  return keyboardUtil;
});

Implement the event listeners for keyUp and keyDown.
Implement the event listeners for keyUp and keyDown.
