Added autoclosing of definitions when selected and shortcut keys for showing definition