Reimplement toggleable color keys. Fixes #353.