Added mousetrap to handle key bindings.