Don't allow edit mode up arrow to continue past index == 0
Check down too.
Get cell after first conditional
Merge pull request #5261 from jdfreder/more-dual-mode

Don't allow edit mode up arrow to continue past index == 0