Question: Dell XPS 13 running Ubuntu 14.04 LTS. I use the `Home` and `End` keys frequently. (Seems most people don't use these keys much anymore.) Unfortunately, because it's such a small computer, Dell put `Home` and `End` on top of the left and right arrow keys, requiring holding the `Fn` key down to get `Home` and `End`. 

There's a `Ctrl` key right next to the cursor keys. I never use this key, as I have `CapsLock` mapped to `Ctrl`. I'd like it to behave as a `Fn` key so I can press `Fn` `Left` (`Home`) and `Fn` `Right` (`End`) using one hand.

Is there any way to do this?

EDIT: I ran both showkey and xev, as suggested by @A.B.'s comment, and the Fn key does not trigger any output. I have a feeling that means my request is impossible.

[![enter image description here](https://i.stack.imgur.com/UNLWx.png)](https://i.stack.imgur.com/UNLWx.png)

Answer: 
Unfortunately for you, the `Fn` is a dead key: that means all by itself, it doesn't have a scan code and only gives an additional scan code to other keys when pressed together with them.

You can see this when you go to `tty1` and executing there:

```
showkey --keycodes

```

Any key you press will give you an output, *except* `Fn`, so mapping `Fn` to `Ctrl` is impossible.

However, *depending on the hardware of your keyboard*, `Fn`+`→` *could* be mapped to E.G. `Ctrl`+`→` but then you'd lose the functionality of both `Ctrl` keys...

(I tried it on my keyboard and there it's impossible as `Fn`+`→` and `→` give the same scancodes...)
Here's a simpler solution: bind `sh -c "xdotool getactivewindow key Home "` and `sh -c "xdotool getactivewindow key End "` commands, to `Alt`+`,` and `Alt`+`.` 

Of course you need to install `xdotool` first with `sudo apt-get install xdotool`. 

Then go to `Settings` -> `Keyboard` -> `Shortcuts` -> `Custom`. Click the plus button and create new shortcuts.

Note: You can also use `Alt`+`Arrow\_Up` and `Alt`+`Arrow\_Down`,but I wouldn't recommend that or `Ctrl` key , as some programs use those as shortcuts already. For instance [firefox](https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly) uses those.