Improved efficiency of Keyboard management