fixed arrow keys on terminal