Changing textbox language to English

Changing textbox language to English

If a user switched his keyboard language and type in another language, I want to automatically change his keyboard language in a specific textbox. Let's say I have 3 textboxes. The user can type in the first two textboxes in whatever language, but when it comes to the third textbox, I want English characters only.

Is there a way to do that?

I tried this, but no luck.

  1.             $("#thirdTextBox").on('keydown', function(e) {

  2.                console.log(e.keyCode); 
  3.                 if( e.keyCode == 90 ) {
  4.                   e.preventDefault();
  5.                   $(this).append('y').focus();
  6.                 }
  7.                 if( e.keyCode == 89 ){
  8.                   e.preventDefault();
  9.                   $(this).append('z').focus();
  10.                 }

  11.             });​