Karabiner is amazing and unfortunately I haven't found an equivalent on Linux. I use Karabiner for the following usecase.
* Mapped both caps lock and return key when they are clicked with another key to act as Ctrl. When they are clicked alone without combination then they work as ususal.