Just to add that this is not about QWERTY. The portuguese and spanish layouts are QWERTY, but still a pain [1]. Typically the best is to look for the US QWERTY layout or the international layout [2], the ones that have easily accessible brackets.
[1] https://en.wikipedia.org/wiki/File:KeyboardLayout-Portuguese...
[2] https://apple.stackexchange.com/questions/106058/difference-...