 exports.isBareModifier = (keystroke) -> ENDS_IN_MODIFIER_REGEX.test(keystroke)
 
 exports.keydownEvent = (key, options) ->
-  return keyboardEvent(key, 'keydown', options)
+  return buildKeyboardEvent(key, 'keydown', options)
 
 exports.keyupEvent = (key, options) ->
-  return keyboardEvent(key, 'keyup', options)
-
-keyboardEvent = (key, eventType, {ctrl, shift, alt, cmd, keyCode, target, location}={}) ->
+  return buildKeyboardEvent(key, 'keyup', options)
+
+buildKeyboardEvent = (key, eventType, {ctrl, shift, alt, cmd, keyCode, target, location}={}) ->
   ctrlKey = ctrl ? false
   altKey = alt ? false
   shiftKey = shift ? false

    else
      return false
  normalizedKeystrokes.join(' ')

exports.keystrokeForKeyboardEvent = (event) ->
  {ctrlKey, altKey, shiftKey, metaKey} = event

    MATCH_TYPES.PARTIAL
  else
    MATCH_TYPES.EXACT
