Auto add Customer and Discount ?% to Order by enter customer number

i can add discount by percent depend on customer using this Specific Discount for Customers

my one more if i want to auto select customer using keypad …can you give me some clue …i try follow some top pic but not work …