Simple but powerful keyboard shortcut binding in JS