remaped arrow keys for resize