Better support for node-webkit

KeyboardJS already works great in node-webkit, however there is a specific use-case that needed these modifications.

This suggestion enables you to optionally pass the window object to KeyboardJS.fork(), so you can control the keyboard from a Window with an URL that you don't own.

By the way, sorry for the excessive commits, my editor messed up all the code.