How to use keycode

Comprehensive keycode code examples:

How to use keycode.isEventKey:

950
951
952
953
954
955
956
957
958
959
// this is a hack to get multiple presses working on windows
// if removing it, ensure you remove it from the keyup event too
if (isMetaKey(event)) metaKeyPressed = true

//  Focus on `Tab`
if (!isMetaKey(event) && Keycode.isEventKey(event, 'tab')) {
  event.preventDefault()
  if (event.shiftKey) {
    mapper.graph.undoFocus()
  } else {