onKeyDown method is not working in android studio : I am trying to bind the android's keyboard enter button as submit/go button But it is showing that the onKeyDown method is not defined in this scope, below is attached the snapshot of my code[enter image description here][1]


  [1]: https://i.stack.imgur.com/9JeiL.jpg

Actually I am trying to build a browser and I need the keyboard button as submit button.