fix CommandEdit keypress return value