changing keyboard.stop() method to null out listeners after they are removed instead of before