Move keypress loop to video.rs to be in the main thread.