Fix to only bind keypress when classify is active, and unbind afterwards
close #167