<commit_before>module.exports = {
  ZOOM_IN: 38, // the up arrow. this needs to be paired with the shift key
  ZOOM_OUT: 40, // down arrow, also needs shift key
  LEFT: 37,
  UP: 38,
  RIGHT: 39,
  DOWN: 40,
  ESC: 27,
  SPACE: 32
};<commit_msg>Refactored the keypress handler with switch case<commit_after>module.exports = {
  // ZOOM_IN: 38, // the up arrow. this needs to be paired with the shift key
  // ZOOM_OUT: 40, // down arrow, also needs shift key
  // LEFT: 37,
  // UP: 38,
  // RIGHT: 39,
  // DOWN: 40,
  // ESC: 27,
  // SPACE: 32
  NEXT: /(right|down|space)/,
  PREVIOUS: /(left|up)/,
  ZOOM_IN: /up/,
  ZOOM_OUT: /down/,
  MINIMIZE: /esc/
};
{'fraction_non_alphanumeric': 0.15174506828528073, 'fraction_numerical': 0.048558421851289835, 'mean_word_length': 2.6065573770491803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4784017', 'n_tokens_mistral': 307, 'n_tokens_neox': 257, 'n_words': 86}