Add support of keyboard control