Even though jQuery is tagged, I don't see that you used it. I see no problem in using jQuery
Again, you should never use
keys, as they are reserved for scrolling, cursor motion in cursor mode and more. Use something else, maybe Ctrl+Up, Ctrl+Down.