Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have tried using Ukelele and KeyRemap4MacBook to map Fn+WASD (or IJKL) to arrow keys, but didn't find any working solution.

I need them to work with Shift, Cmd and Alt so I can easily select/highlight text with just the left hand.

share|improve this question
up vote 0 down vote accepted

Ukelele or keylayout files can't be used to remap fn, but KeyRemap4MacBook can, at least on my Apple Wireless Keyboard. Try using a private.xml like this:

<?xml version="1.0"?>
    <autogen>__KeyToKey__ KeyCode::A, ModifierFlag::FN, KeyCode::CURSOR_LEFT</autogen>
    <autogen>__KeyToKey__ KeyCode::D, ModifierFlag::FN, KeyCode::CURSOR_RIGHT</autogen>
    <autogen>__KeyToKey__ KeyCode::W, ModifierFlag::FN, KeyCode::CURSOR_UP</autogen>
    <autogen>__KeyToKey__ KeyCode::S, ModifierFlag::FN, KeyCode::CURSOR_DOWN</autogen>

See the source for the key code values and predefined settings.

share|improve this answer
This was just the thing I was looking for! Works greatly :). Code seems simple also. I just didn't realise how to use ModifierFlag – OnniMonni Sep 5 '13 at 11:51

Fn is not an OS key. It doesn't return any keycode and is handled by keyboard controller, so you can't remap it

share|improve this answer
On Apple keyboards, Fn is key handled by the OS. – Zequez Sep 23 '15 at 4:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .