a quick fix to keyboard events and to video window demo.
?