phaser spacebar bug when use textarea

I’m making a game using react with ion-phaser and in this game the user needs to develop in python to pass the level, I use Monaco-Editor to generate a mini code editor similar to vscode, but I can’t use the “spacebar” key when I try to overlay the monaco-editor to the phaser, when I remove from the page the spacebar key works again.

reproduction steps: spacebar bug