Add edit/run distinction toggled by space bar