add support for up/down cursor movements