The shortcut Ctrl+F4 is to closes the selected worksheet. Please refer to Alt+F4 if you want to close the workbook.
Step 1: Click any cell in the worksheet;
Step 2: Press and hold the Ctrl key, then press the F4 key from the keyboard. The worksheet will be closed.
Check More Excel Shortcuts