added directives for key press events, added spacebar to play/pause video