Fixed up/down arrow key movements.
Moved from Makefile to CMake.