British Airways A320 G-EUYC operating BA462 London Heathrow – Madrid stopped the climb at 1,000 ft when crew needed to shut down an engine. The aircraft returned to London Heathrow for a safe landing.