changed function to keepScreenOn as requested