User:Ultimate Dark Carnage/keycode.js

function key(value){ var key_name; switch (value){ case 8: key_name = 'Backspace'; break; case 9: key_name = 'Tab'; break; case 13: key_name = 'Enter'; break; case 16: key_name = 'Shift'; break; case 17: key_name = 'Ctrl'; break; case 18: key_name = 'Alt'; break; }   return key_name; }