Erasing stuff drawn with Line tool in Key editor

I’m drawing in by hand MIDI pitch fluctuations using the Line tool in the Key editor. Once I release the mouse button whatever I’ve drawn is in there. How can I erase it? If I want to do that immediately after drawing it and maybe listening to it once but before changing anything I can use Cmd + Z, but I don’t see anything that’s equivalent to a delete in this context.

Never mind. I discovered that I can select a segment and then delete it. That’s the best way to handle it.