ok to do this.
set the key with inputconfig for the portrait and save
cp /etc/X11/kb/userdefined.xmodmap /etc/X11/kb/userdefined.portrait
set the key with inputconfig for the landscape, save and copy
cp /etc/X11/kb/userdefined.xmodmap /etc/X11/kb/userdefined.landscape
* edit /etc/sysconfig/clamshell/landscape.sh
and add
CODE
xmodmap /etc/X11/kb/userdefined.landscape
* edit /etc/sysconfig/clamshell/portrait.sh
and add
CODE
xmodmap /etc/X11/kb/userdefined.portrait
And it should do what you want.
Note: try too take look at /etc/X11/kb/corgi.xmodmap and userdefined.xmodap , a bit of xmodmap documentation and use xev in a console to find the keycode.
I don't mind helping you at all, it's just that it's not that difficult to understand and you might like to do these things yourself.