diff --git a/IPython/html/tests/notebook/merge_cells.js b/IPython/html/tests/notebook/merge_cells.js
index 1ae939ceb..a7a681c9d 100644
--- a/IPython/html/tests/notebook/merge_cells.js
+++ b/IPython/html/tests/notebook/merge_cells.js
@@ -9,7 +9,7 @@ casper.notebook_test(function() {
var cell_one = IPython.notebook.get_selected_cell();
cell_one.set_text('a = 5');
- IPython.utils.press(IPython.keycodes.b)
+ IPython.utils.press(IPython.keyboard.keycodes.b)
var cell_two = IPython.notebook.get_selected_cell();
cell_two.set_text('print(a)');
};