Just noticed that the return value of midend_process_key() wasn't