I think this is a limitation in the Defold editor right now, that it doesn’t support the AltGr combination characters properly. Someone else reported a similar issue recently.
If you report it with the “Report Issue” option in the Defold editor’s help menu, then they can keep track of the issue and it is more likely to be fixed. I wouldn’t expect a really fast fix on this though.