keyboard controls and disabling buttons