Prevent default handler if key press is arrow up or down