Added support for vertical cursor movement