Nonetheless, the rest of the keyboard functions perfectly well. The lithium-ion battery used by the Magic Mouse 2 generally has a lifespan of 3 to 5 years, after which it may need to be replaced.