how can i constrain the user keyb to only letters and numbers

thnks