This is handy if you just want to skip to the next level or disable events that happen on collision with other gameobjects
In Unity, you can use the method
Keyboard.current.lKey.wasPressedThisFrame
to then run another method that loads the next level or turn off collision (these are just examples, of course you can change all sorts of things).
Note: “wasPressedThisFrame” is better than just “isPressed” because it prevent the game code from pressing the button over and over again.