The cv2.waitKey() function is a keyboard function. Its argument is the time in
milliseconds. The function waits for specified milliseconds for any keyboard key
press. If 0 is passed, it waits indefinitely for a key press. It is the only method to fetch
and handle events. We must use this for using cv2.imshow() or no image will be
displayed on screen.