Instead of listening for Enter or esc keypresses to finish or cancel drawing, MapStick should only provide listeners on a MapStick.Overlay; something like "drawing:finish" and "drawing:abandon".
It should be the application's responsibility to provide the keypress listeners which trigger the MapStick.Overlay listeners.