Using the onKeyDown event handler, we'll learn how to toggle styles (in slate, styles are called mark's) for your currently selected text when certain keys are pressed. We'll also use the renderMark method to render these styles.
onKeyDown
mark
renderMark