Press any key ? 00 event.which - event.key The value of the key pressed - event.code Physical key on the keyboard - event.location Location on keyboard (0=Standard, 1=Left, 2=Right) Ctrl Meta Alt Shift Using a virtual keyboard on mobile devices may give different results.