How can I make the enter key on my extended keyboard act as return only?

For some reason sometimes the numeric enter key acts as return and sometimes it doesn't. (I'm talking of the last key on the keyboard, the one with the "k" symbol tilted towards left.)

I'd like to be able to use it as the regular enter.

Do you know any tip in order to fix this? At the moment it is totally random. My guess is that some software I use remaps the enter into return, but I've not been able to point to which one.


Solution 1:

You've got your assumption a tiny bit mixed up. It's not that some software remaps the enter into return, it's that some software treats an enter as a carriage return and some doesn't.

They are two different keys with two differnet histories. One is enter and one is carriage return and they perform different functions.

I hate referencing wikipedia but hell, here ya go ... Differences between Enter and Return.

Usually most programs assume they are the same key - some don't. The AppleScript Editor for example uses +enter to force a script parse.

Solution 2:

Use Ukelele to create a new keyboard layout that maps the enter key to return.

Open Ukelele and select File » New From Current Input Source. Select Keyboard » Edit Key… and confirm to press the key. Then, press enter. You will be asked what character to replace it with. Enter 
 and confirm.

Optionally assign a new name to your keyboard using Keyboard » Set Keyboard Name….

Select File » Save As…, navigate to ~/Library/Keyboard Layouts and assign any name.

Your new keyboard layout will be available in System Preferences » Language & Text. If you didn't change the name, you can recognize it by the missing flag icon (it's a keyboard icon instead).

enter image description here