use arrow key to change window's size