This function closes the video file that is currently loaded. Ensure that this is only called after a video_open() call, otherwise it will not do anything.
video_close();
N/A
if (keyboard_check_pressed(vk_escape))
{
video_close();
}
The above code closes the video when the Escape key is pressed.