The 555 timer can be configured with external components to output a single pulse for a fixed duration. When the switch is toggled to “ON”, the output will go high/1/ON for a brief moment of time, then go back to its stable state. You may find that some switches will need to be debounced, which is a pain in the ass reality of dealing with physical components.