how to write a key interrupt ? could you please tell me the structure ? thanks
What do You mean "a key interrupt"? You need to get interrupt, when a push button is pressed? Then use PIO component and choose it as input. All the other stuff You'll need for setup, You'll find in the documentation.
For more complete information about compiler optimizations, see our Optimization Notice.