add support for up/down arrow keys