Não consigo fazer o input do teclado (e também não consigo fazer ver isso no console do navegador ). Consegui fazer ele mexer-se sozinho mas agora quero que ele reconheça o teclado . Por enquanto meu código esta assim :
       cc.Class({
    extends: cc.Component,
    properties: {
       _acelerando: false,
    },
    onload :function() {
      cc.systemEvent.on(cc.SystemEvent.EventType.KEY_DOWN,this.teclaPressionada,this);
        cc.systemEvent.on(cc.SystemEvent.EventType.KEY_UP,this.teclaSolta,this);
    },
   teclaPressionada: function (event)
                {
               if(event.keyCode == cc.KEY.a)
                   {
                       this._acelerando = true ;
                   }
                  },
    teclaSolta: function (event)
        {
          if(event.keyCode == cc.KEY.a){
              this._acelerando = false;
          }
        },
    update: function (dt){
        if(this._acelerando){
            this.node.x += 1;
        }
},
}); 
            