Cocos2d-JS, Unable to receive keyboard events

Hello there,I’m working on cocos2dx 3.12 in Cocos2d-JS. Keyboard events are not received by the game menu layer until the player clicks anywhere inside the game.

please help me.