You cannot press any button in the writable book GUI using the keyboard.
The button isn't clicked
The button should be clicked and the GUI should be changed to the signing stage.
MC-262268 Keyboard navigation does not work in the book and quill GUI
MC-265613 Book Sign Menu Buttons flashing when arrow keys are pressed
MC-145798 Pressing space/enter in book and quill changes page