attempts to fix key press in editor -- ran out of time, though