Create cvWaitKey