Initialize window and keyboard