key processing in menu