Make kb-controls work from within an iframe.

Previously, listening to document.body for keyboard events
would not work when running a game within an iframe. So instead
kb-controls will attempt to listen to window.top.document.body,
or fall back to the original behaviour if there are cross-domain
issues.