Fixed a Problem with the KeyboardCtrl function