Premature end to trial when button is pressed during initial fixation

OS (e.g. Win10):
**PsychoPy version 2020 1.2
Standard Standalone? (y)
What are you trying to achieve?:
Within the same routine, a fixation appears for 60 frames and is then replaced by a word until a button is pressed which forces end of routine
What did you try to make it work?:
Fixation appears from Frame Number 0 to Frame Number 60
From Frame Number 60, the keyboard component starts, as does the next text component. In theory, pressing the left or right arrow should end routine.
What specifically went wrong when you tried that?:
This works if the button is pressed AFTER the fixation disappears BUT if I press the button whilst the fixation is visible (ie first 60 frames), it ends the routine - even though the keyboard has been specified not to start until frame 60 - and moves onto the next trial.

Note: Same problem if I use seconds as my unit, e.g., the keyboard component supposedly starts after 1 second

Problem solved (I think!). On the keyboard component, tick “discard previous”. This has worked for me, but feel free to add to discussion below.