Game Bar

Press Windows + G for the Game Bar.
To start/stop recording, press Windows + Alt + R.
To capture the last 30 seconds of action, press Windows + Alt + G (background recording must be enabled).