fixed arrow keys esc bug