Added up/down arrow key functionality

Also added some basic error handling for those out-of-bounds traversals
huh, index conflct?