Keyboard shortcut to switch focus between monitors (from #1 to #2) in Yosemite
You can switch Applications by using ⌘ command+tab. Tabbing through the list of applications can be done by holding the ⌘ command key and continually hitting tab. This will automatically shift focus to the selected app no matter which screen or monitor on which it resides.

Therefore, swapping between IDE and browser is easily done without mapping new shortcuts.

The keyboard command for refreshing the browser is generally ⌘ command+R.

You can switch Windows of the same app by using ⌘ command+~.