don't bluescreen on pressing up/down when cursor is on empty position in an input box