*Problem solved *
I had to enter the Options menu in Keyboard layout settings. Then choose "Key(s) to change layout", and check the "Right alt" alternative.
But thanks anyway for all the great answers/comments to this question! :-)
When I installed Ubuntu 12.04, curly brackets no longer worked. I then reinstalled 12.04, and everything worked fine until I hooked my laptop up with my Apple wireless keyboard. I then found out that all the keybindings with alt/meta was gone.
This is the output from xev when AltGr + 7 is pressed:
KeyPress event, serial 35, synthetic NO, window 0x3200001,
root 0xc4, subw 0x0, time 73403321, (208,74), root:(1114,151),
state 0x0, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 35, synthetic NO, window 0x3200001,
root 0xc4, subw 0x0, time 73403396, (208,74), root:(1114,151),
state 0x8, keycode 16 (keysym 0x37, 7), same_screen YES,
XLookupString gives 1 bytes: (37) "7"
XmbLookupString gives 1 bytes: (37) "7"
XFilterEvent returns: False
KeyRelease event, serial 35, synthetic NO, window 0x3200001,
root 0xc4, subw 0x0, time 73403471, (208,74), root:(1114,151),
state 0x8, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 35, synthetic NO, window 0x3200001,
root 0xc4, subw 0x0, time 73403484, (208,74), root:(1114,151),
state 0x0, keycode 16 (keysym 0x37, 7), same_screen YES,
XLookupString gives 1 bytes: (37) "7"
XFilterEvent returns: False
Anyone know what to do?
I have disabled the function where the alt-key shows the HUD in Unity. Things I have tried:
The lsusb did not show me any keyboard. I use the Apple wireless keyboard, with Norwegian (Macintosh) keyboard layout. All the keys are recognized so It seems like it
s just the combination that dont work anymore. The same happened with alt+tab, but I just had to change some things in the compiz-settings.I also tried the onscreen keyboard, and pressed AltGr + shift, that made it possible for me to use brackets++.


Here you can play around with some of the options and see if it helps.
If you click on your keyboard layout in the list (Probably labeled English in my case it is German) and the keyboard symbol on the bottom of the list (5th symbol)
you can see your current keyboard layout visually to see if everything looks fine there.
You can press keys in this view and see If they are recognised. This is important to check if your alt-gr key is correctly mapped to the alt-fn combination you probably use
xev. It will display debugging information about input events. In the xev window, pressAltGr, press7, then release both keys. Copy-paste the xev output for this into your question. If there is anotherAltGrcombination that works, also copy-paste the output for that combination for comparison. – Gilles May 11 '12 at 10:477key. Can you add the previous twoKeyPresschunks as well? The most interesting one is you pressing theAltGrkey. And please edit your question (use theeditbutton below the question text and the tags, above the comments). – Gilles May 11 '12 at 18:05