What seems to be happening is that you're using setting OnKey which remains in force after you do the add_1 or subtract_1 and go to the other sheet
So if you add or subtract in the yellow and then go right to the second the OnKey is still set
If you change the selection on Sheet1 and it's not the yellow-type cells, the Selection_Change has a chance to clear the OnKey
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim DateFormats, DF
DateFormats = Array("#,##0")
For Each DF In DateFormats
If DF = Target.NumberFormat Then
Application.OnKey "^{UP}", "add_1"
Application.OnKey "^{DOWN}", "subtract_1"
Else
Application.OnKey "^{UP}"
Application.OnKey "^{DOWN}"
End If
Next
End Sub
You should clear the OnKey when you leave the Sheet1
Private Sub Worksheet_Deactivate()
Application.OnKey "^{UP}"
Application.OnKey "^{DOWN}"
End Sub