Remote-controlled windows with smart key