To exit fullscreen mode, press the same key combination you used to enter fullscreen mode: F4 on Windows and Linux, Command + Control + F on Mac.