press 'P' to pause the simulation