Maybe a solution would be for the OS to buffer the keystroke intil the next beat?