You shouldn't had made the button to exit the viewing of objects esc; that would force me out of fullscreen mode!
you can also click the objects to get out of them!