VideoItem: Less code duplication in the keyboard handling code