continuing running while pressing buttons