// ..... var notAllow = /[\d\*_~]/.test( String.fromCharCode( e.keyCode ) ); return notAllow ? false : !word || !isSymbol || ( /[а-яё]+/i.test( word ) ? !isLatin : isLatin );