Implemented up/down/left/right cursor movements

with a few tests