This plugin implements the same functionality as the html-keyboard-response plugin, but uses requestAnimationFrame internally for timing
<script src="https://unpkg.com/@jspsych-contrib/[email protected]"></script>
npm install @jspsych-contrib/plugin-html-keyboard-response-raf
import jsPsychHtmlKeyboardResponseRaf from '@jspsych-contrib/plugin-html-keyboard-response-raf';
jsPsych 7.0.0
See documentation
Josh de Leeuw