Dimensions and main hotkey functions.