There are plenty of examples around that show how to use the following to enter text using selenium

```
driver.execute_script('cm.setValue("text")');

```

This works, but isn't very "selenium" of us. We want to simulate actual keyboard key presses like the send\_keys function in selenium. We created a **enterFormData** that gets an element and types to it using driver.send\_keys()*(e.g. a textarea with an ID we can easily simulate typing)*. How can we simulate actual key presses into the CodeMirror editor? We also want to be able to test HotKeys *(e.g. Ctrl-Shift-M)* and then take a **driver.get\_screenshot\_as\_base64()**