Implemented keyboard manager.