Initial implementation of keyboard callback registration mechanism without boost