Working on moving cursor

Cursor moving code, currently not working.