Arduino Stop when it is using serial.write and a button is pressed

Why stop?

Why not?

Read this before posting a programming question

How to use this forum

Your post is missing any useful information, such as your code, or your schematic.