Add command prompt support

Hi,

First, thank you for your plugin.

Here is a small patch for a command prompt support. I find that using the mouse for toggling read-only mode on and off can be very disruptive to my workflow.

Thanks.

Regards,
Tony