clean up a lot.

Moved keyboard::key out from keyboard, this cleans the class up a lot.
moved the key_event typedef out from window.