New study reveals how brain waves control working memory