Extract Window and Keymap classes from Application