Terahertz dynamics in confined magnetoexcitons