code: function (e) {
  		var selected = ((e.clientX > Crafty.stage.x && e.clientX < Crafty.stage.x + Crafty.viewport.width) &&
                      (e.clientY > Crafty.stage.y && e.clientY < Crafty.stage.y + Crafty.viewport.height));
  
  		if (!Crafty.selected && selected)
  			Crafty.trigger("CraftyFocus");
  		if (Crafty.selected && !selected)
  			Crafty.trigger("CraftyBlur");
  
  		Crafty.selected = selected;
  	}
docs: @
  #Crafty.keydown
  @category Input
  Remembering what keys (referred by Unicode) are down.
  
  @example
  ~~~
  Crafty.c("Keyboard", {
  isDown: function (key) {
  if (typeof key === "string") {
  key = Crafty.keys[key];
  }
  return !!Crafty.keydown[key];
  }
  });
  ~~~
  @see Keyboard, Crafty.keys