If I press ESC my game exits full screen mode

In the main menu level blueprint I added a Begin Play event and added a console command node and wrote “fullscreen”. Then I packed my project, ran it and it was full screen like it was supposed to be, started a new game and I pressed ESC, it went to windowed (it should have stayed full screen) and loaded the main menu level (like it was supposed to). Please help!