This code you use is very complicated. I'm doing a Web browser and had to use a hotkey of the enter key because it's annoying to always be pressing the "GO" to the browser to navigate.
Then, using my code is much simpler.
If Keys.Enter Then WebBrowser1.Navigate(TextBox1.Text)
(If you press Enter then WebBrowser1 will navigate to the text of the textbox1)
You can use it from other things..
If Keys.Enter Then
MsgBox("Hello MPGH.NET GUYS! \O/", 16, "This is the name of the window. You can put "MPGH.NET")
End If