Did basic code, waiting to solve something

How does one even into update in world every frame? I need it to add an
entity every time the mouse is pressed, and to do that I need to check
every frame.