diff --git a/lib/keys.js b/lib/keys.js
index <HASH>..<HASH> 100644
--- a/lib/keys.js
+++ b/lib/keys.js
@@ -1,10 +1,10 @@
-var keymap = require("./keymap");
-
 module.exports = function(opts, editor){
+	this.keymap = require("./keymap");
+
 	// Get default keys and bind their functions
 	// to Catdown instance.
-	for(var key in keymap)
-		keymap[key] = keymap[key].bind(this);
+	for(var key in this.keymap)
+		this.keymap[key] = this.keymap[key].bind(this);
 
 	// CodeMirror's "extraKeys" option replaces the old
 	// keymap when it's used. This appends any new keys to the
Bound keymap object to the editor so it's publicly accessible