Add almost working focus changing

And an unimplemented grab keys effect.

The focus change key is slightly broken since it triggers an event to
"refresh" which then resets the focus.
Ignore bound keys and insert windows properly
Add window swapping
Handle changed focus upon refresh