Update keyEnabled variable