added menu key handling