document.write("<canvas>")
var Graphics = new Processing(document.querySelector('canvas'));
document.write("<canvas>")
var Graphics = new Processing(document.querySelector('canvas'));

Graphics.keyPressed = function() {
  World.query("keyboard").forEach(function(e) {
    e.key = Graphics.keyCode;
  });
}

Graphics.keyReleased = function() {
  World.query("keyboard").forEach(function(e) {
    delete e.key;
  });
}

Add key* functions to Graphics backend
Add key* functions to Graphics backend
