Broke apart prev/next methods and wrote some tests for key presses.