When used with the Alt and Ctrl key, the F4 is used to close a program or window in a program. Alt + F4 closes the program window currently active in Microsoft Windows. Ctrl + F4 closes the open window or tab in the active window in Microsoft Windows.