rework detect control keys