On windows 10, using:
10.24.3-win-ddl-public (3041)
Editor: v134.0.17043
Service: v1.41.4
When pressing ctrl+z to undo a sketch, if I immediately press any key on the keyboard, the entire sketch gets wiped and reset. Below is a gif example where ctrl+z is pressed, followed by a random key.