Quick tip for Apple keyboard under Ubuntu
I am currently using my Apple keyboard with my Ubuntu workstation; if you use this kind of setup, you probably would like to remap the Apple key and make it behave like the left Alt key.
To make this happen, simply create an .xmodmap file in your home folder and put the following lines into it:
keycode 115 = Alt_L Meta_L
add mod1 = Alt_L Meta_L
Then, execute the following command:
Voilà, the Apple key has become a left Alt key, enjoy