Keyboard events not working with cocos2d-js 3.0b

A patch would be nice to resolve this.