Basic cursor code

Added basic movement code for cursor