> If you're using a layout that defines AltGr
Which the parent was pointing out is nonstandard. There is no alt-gr key on a standard US keyboard. You can certainly remap alt-right to alt-gr but that is nonstandard and doing so does not mean that the key exists on the physical keyboard.
For example my caps lock key is mapped to ctrl-left. That is nonstandard.