Make the unit details menu closable with escape.