I'm surprised it works, isn't `window' the keyboard frame in this context? I guess it's a variable passed into the keyboard frame for the keyboard app to use? If we do use it it would be useful as a property on its own.