Prevent NaN on cursor increment / decrement