removed redundant lines
Fixed both bugs:double-simultaenous keypress and non-alphanum chars are prohibited