Resizing the screen using arrow keys