Remapping keys system-wide

Hey everyone,

I just installed Fedora 22 on my mid 2009 13" MacBook Pro alongside OS X (dual boot). I had a problem with the keyboard where the Control key died. In OS X I was able to find a program to remap it to the left alt/option key next to it because there is no right control key, however there is a right option so the left can be used for something else.

TL;DR
Control key is dead, need to remap to left alt/option on MBP. Any ideas of how to do this easily?

Thanks!

Theres a few options.

You can use xmodmap or xbindkeys, these may be helpful:

https://wiki.archlinux.org/index.php/Xbindkeys
https://wiki.archlinux.org/index.php/Xmodmap

Found a solution here

create xmodmap
$ gedit ~/.Xmodmap
copy this into the file
clear control
clear mod1
keycode 37 = Alt_L Meta_L
keycode 64 = Control_L
add control = Control_L Control_R
add mod1 = Alt_L Meta_L

activate the file
$ xmodmap ~/.Xmodmap