Now supporting cursor movements. Some minor changes were done to video.c