Pretty simple, really. Right now, there's no way to tell if a keypress is a repeat keypress or not. There are some reasonable contexts where you might want to ignore repeat presses, and others where you might want to know about repeat keypresses.
Something like this: https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat