Disable Command-Up/Down Arrow on OSX

You could save something like this as ~/Library/KeyBindings/DefaultKeyBinding.dict:

{
    "@\UF700" = noop:; // command-up
    "@\UF701" = noop:; // command-down
    "$@\UF700" = noop:; // shift-command-up
    "$@\UF701" = noop:; // shift-command-down

    // "\UF729"  = moveToBeginningOfLine:; // home
    // "$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home
    // "\UF72B"  = moveToEndOfLine:; // end
    // "$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end
    // "\UF72C"  = pageUp:; // OS X default is scrollPageUp: which doesn't move the caret
    // "\UF72D"  = pageDown:;
    // "$\UF72C"  = pageUpAndModifySelection:;
    // "$\UF72D"  = pageDownAndModifySelection:;
}

More information:

  • Cocoa Text System
  • Keybindings - Lri.me