used keyboard events in menu