menu keypress event