The (Alt Graph) key must trigger a mode_switch, so, for example, xmodmap -e &quot; keysym Alt_R = Mode_switch &quot; must be set.
La tecla Alt Gr debe producir un mode_switch, es decir, deberá establecer xmodmap -e &quot; keysym Alt_R = Mode_switch &quot; .