cc.eventManager.addListener({ event:cc.EventListener.KEYBOARD, onKeyPressed:function(keycode,event){},//无效 jsb未实现 onKeyReleased:function(keycode,event){ if(keycode==8){//back button 8 }else if(keycode==0x1067){//menu 4199 cc.Director.getInstance().end(); } } },this);