I am having some problems with this functionality. I am using Windows Forms and I am trying to make a KeyDown function for the application to where when you press the Enter key it takes the string from the addressBar textbox and makes it the new URL. The following is the KeyDown function that I have so far:

Code:
private: System::Void addressBar_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e){
		
		//navigates to address in addressBox when ENTER is pushed

			 if((e->KeyData == System::Windows::Forms::Keys::Enter) && (!this->addressBar->Text->Empty))
			 {
				 this->webBrowser1->Navigate(this->addressBar->Text);				
			 }//end if statement

	}//end addressBar_KeyDown() function
There are no errors when I build it, but when I run the program the functionality doesn't work. I made a seperate "GO!" button that does the same thing and it works fine. Here is the code for that function:

Code:
private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {

			// functionality for the GO! button --------------------------//

			 this->webBrowser1->Navigate(this->addressBar->Text);

		 }

It should be a simple thing, but it's not wanting to cooperate :P

any suggestions?