psychopy_ext.exp.Task.last_keypress

Task.last_keypress(keyList=None, timeStamped=False)[source]

Extract the last key pressed from the event list.

If exit key is pressed (default: ‘Left Shift + Esc’), quits.

Returns:A list of keys pressed.