Allow Enter to toggle resize mode

When Enter is pressed, switch the resize mode to both if it's on normal, or vice versa.