Response is accepted with any key press



Many of the functions within the trial_ family are designed to allow participants to respond using a key press, generally by specifying a a choices argument that indicates which keys will be accepted as valid responses (e.g., choices = c("f","j")). There are also cases where you may wish to allow every key to be a valid response (e.g., in situations where "Press any key to continue" is a sensible prompt). In those cases, specifying choices = respond_any_key() will produce the desired behaviour.

See also