Fixed if-statement choosing wrong directory and set PRESS_KEY for jed editor app.