Search Google with any selected text from any application

Is there any way to search Google with a hotkey using any selected text from any application?

For e.g., if I am working in Microsoft Word or Notepad and if I select some text, can I press a hotkey which will search Google for that selected text?