Add API support for enabling and disabling keyboardControls