setKeepScreenOn method