handle all single scan code
handle multiple scan code