Fix size of the window by the keyboard shortcut correctly