Add key listener to scalePanel and annotationPanel