refactored keyhandlers, added menu object