Implemented keyboard control style for the whole window