Fix bug with readOnly parameter of editor.addKeyboardCommand()

Fix the readOnly boolean parameter always being set to true.