They wouldn’t be an accident. They are baked into the software by the programmers. The engineers use what are called listeners that detect certain events. In this case, it would be key events. Once detected, the software runs whatever function was attached to the listener.
Source: me, a software engineer.
Latest Answers