added mousetrap for handling shortcuts