JavaScript and keyboard shortcuts

Yes. Listen for keyup and keydown events, then read the events’ key property.