Controller and the armrest apparatus armrest