         
         // scroll line by line if an arrow key is pressed
         if NSEvent.modifierFlags.contains(.numericPad),
-            !NSEvent.modifierFlags.contains(.command),  // Command + Arrow is scroll to the end of contents
             let layoutManager = self.layoutManager,
             let textContainer = self.textContainer
         {

        let range = NSRange(location: self.locationOfBeginningOfLine(), length: 0)
        
        self.setSelectedRange(range, affinity: .downstream, stillSelecting: false)
    }
    
    

            .union(self.selectedRange)
        
        self.setSelectedRange(range, affinity: .downstream, stillSelecting: false)
        self.scrollRangeToVisible(range)
    }
    
    
