I discovered that this did not work correctly in kde. I filed a bug report, and then I found out that it was a bug in X instead of kde. After much frustration, I went searching and found out this method of making my right alt key fully functional:
Code:
xmodmap -e "clear mod3" -e "keycode 113 = Alt_R" -e "add mod1 = Alt_R"