﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Millisecond Forums » Millisecond Forums » Inquisit 4  » Help with modifying existing script to use keyboard input, rather than mouse</title><generator>InstantForum 2017-1 Final</generator><description>Millisecond Forums</description><link>https://forums.millisecond.com/</link><webMaster>Millisecond Forums</webMaster><lastBuildDate>Fri, 11 Sep 2026 01:28:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Help with modifying existing script to use keyboard input, rather than mouse</title><link>https://forums.millisecond.com/Topic25172.aspx</link><description>Our lab is trying to modify a Cyberball script to use the keyboard, rather than mouse to throw to particular targets.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We don't want the mouse cursor to show up because we are going to be recording videos of various Cyberball interactions (e.g., over inclusion, exclusion, inclusion, etc.), and we would like to have people watch videos of those interactions. Because we don't want to induce perspective taking, we are hoping to record the videos with no mouse cursor. We first tried&amp;nbsp;&lt;strong&gt;/ inputdevice = mousekey&lt;/strong&gt;, but then realized that we couldn't select targets when we did that. Then, we tried modifiying&lt;strong&gt;&amp;nbsp;/ validresponse = (player1, player2) to&amp;nbsp;/ validresponse = ("a," "l") &lt;/strong&gt;in order to select the targets by pressing A or L, but when we launch and press the keys, it just advances to the next screen.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Right now, participants have to *click* on the blue smiley or green smiley for the ball to be thrown to them.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Including some of the code and a picture of our paradigm.&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Here is our code.&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;br/&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&amp;lt;block excludedbyC&amp;gt;&lt;br/&gt;/ bgstim = (player1, player2, player1label, player2label, youlabel)&lt;br/&gt;/ trials = [1 = yourturnexcludedbyC]&lt;br/&gt;/ stop = [block.excludedbyC.trialcount &amp;gt;= 60]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;trial player1turnexcludedbyC3to1&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball3, blank2, blank1; 100=blank3, ball1to3e; 200=blank1to3e; 220=ball1to3d; 320=blank1to3d; 340=ball1to3c; 440=blank1to3c; 460=ball1to3b; 560=blank1to3b; 580=ball1to3a; 680=blank1to3a; 700=ball1]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ timeout = 800&lt;br/&gt;/ branch = [if (counter.player1inclusion.selectedvalue == 2) trial.player2turnexcludedbyC1to2]&lt;br/&gt;/ branch = [if (counter.player1inclusion.selectedvalue == 3) trial.yourturnexcludedbyC1to3]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial player1turnexcludedbyC2to1&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball2, blank3, blank1; 100=blank2, ball1to2e; 200=blank1to2e; 220=ball1to2d; 320=blank1to2d; 340=ball1to2c; 440=blank1to2c; 460=ball1to2b; 560=blank1to2b; 580=ball1to2a; 680=blank1to2a; 700=ball1]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ timeout = 800&lt;br/&gt;/ branch = [if (counter.player1inclusion.selectedvalue == 2) trial.player2turnexcludedbyC1to2]&lt;br/&gt;/ branch = [if (counter.player1inclusion.selectedvalue == 3) trial.yourturnexcludedbyC1to3]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;counter player1inclusion&amp;gt;&lt;br/&gt;/ items = (2, 3)&lt;br/&gt;/ select = noreplace&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&amp;lt;counter player2exclusion&amp;gt;&lt;br/&gt;/ items = (1)&lt;br/&gt;/ select = noreplace&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&amp;lt;trial yourturnexcludedbyC&amp;gt;&lt;br/&gt;/ stimulusframes = [1=ball3, blank2, blank1, selectinstructions]&lt;br/&gt;/ validresponse = (player1, player2)&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC.response == "player1") trial.player1turnexcludedbyC3to1]&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC.response == "player2") trial.player2turnexcludedbyC3to2]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial player2turnexcludedbyC3to2&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball3, blank2, blank1; 100=blank3, ball3to2a; 200=blank3to2a; 220=ball3to2b; 320=blank3to2b; 340=ball3to2c; 440=blank3to2c; 460=ball3to2d; 560=blank3to2d; 580=ball3to2e; 680=blank3to2e; 700=ball2]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ timeout = 800&lt;br/&gt;/ branch = [if (counter.player2exclusion.selectedvalue == 1) trial.player1turnexcludedbyC2to1]&lt;br/&gt;/ branch = [if (counter.player2exclusion.selectedvalue == 3) trial.yourturnexcludedbyC2to3]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial player2turnexcludedbyC1to2&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball1, blank2, blank3; 100=blank1, ball1to2a; 200=blank1to2a; 220=ball1to2b; 320=blank1to2b; 340=ball1to2c; 440=blank1to2c; 460=ball1to2d; 560=blank1to2d; 580=ball1to2e; 680=blank1to2e; 700=ball2]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ timeout = 800&lt;br/&gt;/ branch = [if (counter.player2exclusion.selectedvalue == 1) trial.player1turnexcludedbyC2to1]&lt;br/&gt;/ branch = [if (counter.player2exclusion.selectedvalue == 3) trial.yourturnexcludedbyC2to3]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial yourturnexcludedbyC2to3&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball2, blank3, blank1; 100=blank2, ball3to2e; 200=blank3to2e; 220=ball3to2d; 320=blank3to2d; 340=ball3to2c; 440=blank3to2c; 460=ball3to2b; 560=blank3to2b; 580=ball3to2a; 680=blank3to2a; 700=ball3, selectinstructions]&lt;br/&gt;/ validresponse = (player1, player2)&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC2to3.response == "player1") trial.player1turnexcludedbyC3to1]&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC2to3.response == "player2") trial.player2turnexcludedbyC3to2]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial yourturnexcludedbyC1to3&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball1, blank3, blank2; 100=blank1, ball1to3a; 200=blank1to3a; 220=ball1to3b; 320=blank1to3b; 340=ball1to3c; 440=blank1to3c; 460=ball1to3d; 560=blank1to3d; 580=ball1to3e; 680=blank1to3e; 700=ball3, selectinstructions]&lt;br/&gt;/ validresponse = (player1, player2)&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC1to3.response == "player1") trial.player1turnexcludedbyC3to1]&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC1to3.response == "player2") trial.player2turnexcludedbyC3to2]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;Also, Our default settings are as follows:&lt;br/&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;************************&lt;br/&gt;***DEFAULTS*********&lt;br/&gt;*************************&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ minimumversion = "3.0.1.1"&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ fontstyle = ("Verdana", 18pt, false, false, false, false, 5, 0)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;span style="font-size: 13.3333px;"&gt;And here is a picture:&lt;br/&gt;&lt;br/&gt;&lt;img src="https://www.millisecond.com/forums/Uploads/Images/e07f070c-6ed8-4793-aa12-4c15.png" data-download-url="https://www.millisecond.com/forums/Uploads/Images/bdbf1045-b052-4167-a869-1d26.png"&gt;&lt;br/&gt;&lt;/span&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;br/&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;span style="font-size: 13.3333px;"&gt;Hoping for some help or a workaround to the screen recording issue! Thank you very much.&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;</description><pubDate>Tue, 26 Jun 2018 20:08:54 GMT</pubDate><dc:creator>emotion39</dc:creator></item><item><title>RE: Help with modifying existing script to use keyboard input, rather than mouse</title><link>https://forums.millisecond.com/Topic25176.aspx</link><description>&lt;div data-id="25175" class="if-quote-wrapper" unselectable="on" data-guid="1530068921564"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25175" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25175" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25175" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;emotion39 - Tuesday, June 26, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25175"&gt;&lt;div class="if-quote-message-margin"&gt;Reporting back that it worked! Thank you!!&lt;a class="if-quote-goto quote-link" href="#" data-id="25175"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Wonderful -- thanks for letting me know!&lt;br/&gt;</description><pubDate>Tue, 26 Jun 2018 20:08:54 GMT</pubDate><dc:creator>Dave</dc:creator></item><item><title>RE: Help with modifying existing script to use keyboard input, rather than mouse</title><link>https://forums.millisecond.com/Topic25175.aspx</link><description>Reporting back that it worked! Thank you!!</description><pubDate>Tue, 26 Jun 2018 19:29:42 GMT</pubDate><dc:creator>emotion39</dc:creator></item><item><title>RE: Help with modifying existing script to use keyboard input, rather than mouse</title><link>https://forums.millisecond.com/Topic25174.aspx</link><description>&lt;br/&gt;Take you for the response, Dave!&lt;br/&gt;&lt;br/&gt;We will try this out!!</description><pubDate>Tue, 26 Jun 2018 17:36:53 GMT</pubDate><dc:creator>emotion39</dc:creator></item><item><title>RE: Help with modifying existing script to use keyboard input, rather than mouse</title><link>https://forums.millisecond.com/Topic25173.aspx</link><description>&lt;div data-id="25172" class="if-quote-wrapper" unselectable="on" data-guid="1530059042018"&gt;&lt;a class="quote-para" unselectable="on" style="display: none;" href="#" data-id="25172" title="Move Cursor Below" contenteditable="false"&gt;&lt;span unselectable="on"&gt;+&lt;/span&gt;&lt;/a&gt;&lt;a class="quote-delete" unselectable="on" style="display: none;" href="#" data-id="25172" title="Delete Quote" contenteditable="false"&gt;&lt;span unselectable="on"&gt;x&lt;/span&gt;&lt;/a&gt;&lt;span unselectable="on" class="quote-markup"&gt;[quote]&lt;/span&gt;&lt;div unselectable="on" class="if-quote-header" contenteditable="false"&gt;&lt;div unselectable="on" class="if-quote-toggle-wrapper"&gt;&lt;a class="if-quote-toggle quote-link" href="#" data-id="25172" title=" "&gt;&lt;/a&gt;&lt;/div&gt;&lt;span unselectable="on" class="quote-markup"&gt;[b]&lt;/span&gt;emotion39 - Tuesday, June 26, 2018&lt;span unselectable="on" class="quote-markup"&gt;[/b]&lt;/span&gt;&lt;/div&gt;&lt;div class="if-quote-message if-quote-message-25172"&gt;&lt;div class="if-quote-message-margin"&gt;Our lab is trying to modify a Cyberball script to use the keyboard, rather than mouse to throw to particular targets.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;We don't want the mouse cursor to show up because we are going to be recording videos of various Cyberball interactions (e.g., over inclusion, exclusion, inclusion, etc.), and we would like to have people watch videos of those interactions. Because we don't want to induce perspective taking, we are hoping to record the videos with no mouse cursor. We first tried&amp;nbsp;&lt;strong&gt;/ inputdevice = mousekey&lt;/strong&gt;, but then realized that we couldn't select targets when we did that. Then, we tried modifiying&lt;strong&gt;&amp;nbsp;/ validresponse = (player1, player2) to&amp;nbsp;/ validresponse = ("a," "l") &lt;/strong&gt;in order to select the targets by pressing A or L, but when we launch and press the keys, it just advances to the next screen.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Right now, participants have to *click* on the blue smiley or green smiley for the ball to be thrown to them.&amp;nbsp;&lt;br/&gt;&lt;br/&gt;Including some of the code and a picture of our paradigm.&amp;nbsp;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Here is our code.&amp;nbsp;&amp;nbsp;&lt;/strong&gt;&lt;br/&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&amp;lt;block excludedbyC&amp;gt;&lt;br/&gt;/ bgstim = (player1, player2, player1label, player2label, youlabel)&lt;br/&gt;/ trials = [1 = yourturnexcludedbyC]&lt;br/&gt;/ stop = [block.excludedbyC.trialcount &amp;gt;= 60]&lt;br/&gt;&amp;lt;/block&amp;gt;&lt;br/&gt;&amp;lt;trial player1turnexcludedbyC3to1&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball3, blank2, blank1; 100=blank3, ball1to3e; 200=blank1to3e; 220=ball1to3d; 320=blank1to3d; 340=ball1to3c; 440=blank1to3c; 460=ball1to3b; 560=blank1to3b; 580=ball1to3a; 680=blank1to3a; 700=ball1]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ timeout = 800&lt;br/&gt;/ branch = [if (counter.player1inclusion.selectedvalue == 2) trial.player2turnexcludedbyC1to2]&lt;br/&gt;/ branch = [if (counter.player1inclusion.selectedvalue == 3) trial.yourturnexcludedbyC1to3]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial player1turnexcludedbyC2to1&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball2, blank3, blank1; 100=blank2, ball1to2e; 200=blank1to2e; 220=ball1to2d; 320=blank1to2d; 340=ball1to2c; 440=blank1to2c; 460=ball1to2b; 560=blank1to2b; 580=ball1to2a; 680=blank1to2a; 700=ball1]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ timeout = 800&lt;br/&gt;/ branch = [if (counter.player1inclusion.selectedvalue == 2) trial.player2turnexcludedbyC1to2]&lt;br/&gt;/ branch = [if (counter.player1inclusion.selectedvalue == 3) trial.yourturnexcludedbyC1to3]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;counter player1inclusion&amp;gt;&lt;br/&gt;/ items = (2, 3)&lt;br/&gt;/ select = noreplace&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&amp;lt;counter player2exclusion&amp;gt;&lt;br/&gt;/ items = (1)&lt;br/&gt;/ select = noreplace&lt;br/&gt;&amp;lt;/counter&amp;gt;&lt;br/&gt;&amp;lt;trial yourturnexcludedbyC&amp;gt;&lt;br/&gt;/ stimulusframes = [1=ball3, blank2, blank1, selectinstructions]&lt;br/&gt;/ validresponse = (player1, player2)&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC.response == "player1") trial.player1turnexcludedbyC3to1]&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC.response == "player2") trial.player2turnexcludedbyC3to2]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial player2turnexcludedbyC3to2&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball3, blank2, blank1; 100=blank3, ball3to2a; 200=blank3to2a; 220=ball3to2b; 320=blank3to2b; 340=ball3to2c; 440=blank3to2c; 460=ball3to2d; 560=blank3to2d; 580=ball3to2e; 680=blank3to2e; 700=ball2]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ timeout = 800&lt;br/&gt;/ branch = [if (counter.player2exclusion.selectedvalue == 1) trial.player1turnexcludedbyC2to1]&lt;br/&gt;/ branch = [if (counter.player2exclusion.selectedvalue == 3) trial.yourturnexcludedbyC2to3]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial player2turnexcludedbyC1to2&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball1, blank2, blank3; 100=blank1, ball1to2a; 200=blank1to2a; 220=ball1to2b; 320=blank1to2b; 340=ball1to2c; 440=blank1to2c; 460=ball1to2d; 560=blank1to2d; 580=ball1to2e; 680=blank1to2e; 700=ball2]&lt;br/&gt;/ validresponse = (noresponse)&lt;br/&gt;/ timeout = 800&lt;br/&gt;/ branch = [if (counter.player2exclusion.selectedvalue == 1) trial.player1turnexcludedbyC2to1]&lt;br/&gt;/ branch = [if (counter.player2exclusion.selectedvalue == 3) trial.yourturnexcludedbyC2to3]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial yourturnexcludedbyC2to3&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball2, blank3, blank1; 100=blank2, ball3to2e; 200=blank3to2e; 220=ball3to2d; 320=blank3to2d; 340=ball3to2c; 440=blank3to2c; 460=ball3to2b; 560=blank3to2b; 580=ball3to2a; 680=blank3to2a; 700=ball3, selectinstructions]&lt;br/&gt;/ validresponse = (player1, player2)&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC2to3.response == "player1") trial.player1turnexcludedbyC3to1]&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC2to3.response == "player2") trial.player2turnexcludedbyC3to2]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&amp;lt;trial yourturnexcludedbyC1to3&amp;gt;&lt;br/&gt;/ pretrialpause = replace(100-2000)&lt;br/&gt;/ stimulustimes = [1=ball1, blank3, blank2; 100=blank1, ball1to3a; 200=blank1to3a; 220=ball1to3b; 320=blank1to3b; 340=ball1to3c; 440=blank1to3c; 460=ball1to3d; 560=blank1to3d; 580=ball1to3e; 680=blank1to3e; 700=ball3, selectinstructions]&lt;br/&gt;/ validresponse = (player1, player2)&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC1to3.response == "player1") trial.player1turnexcludedbyC3to1]&lt;br/&gt;/ branch = [if (trial.yourturnexcludedbyC1to3.response == "player2") trial.player2turnexcludedbyC3to2]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;/blockquote&gt;&lt;br/&gt;&lt;br/&gt;Also, Our default settings are as follows:&lt;br/&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;************************&lt;br/&gt;***DEFAULTS*********&lt;br/&gt;*************************&lt;br/&gt;&amp;lt;defaults&amp;gt;&lt;br/&gt;/ minimumversion = "3.0.1.1"&lt;br/&gt;/ inputdevice = mouse&lt;br/&gt;/ fontstyle = ("Verdana", 18pt, false, false, false, false, 5, 0)&lt;br/&gt;&amp;lt;/defaults&amp;gt;&lt;br/&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;span style="font-size: 13.3333px;"&gt;And here is a picture:&lt;br/&gt;&lt;br/&gt;&lt;img src="https://www.millisecond.com/forums/Uploads/Images/e07f070c-6ed8-4793-aa12-4c15.png" data-download-url="https://www.millisecond.com/forums/Uploads/Images/bdbf1045-b052-4167-a869-1d26.png"&gt;&lt;br/&gt;&lt;/span&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;br/&gt;&lt;br/&gt;&lt;/blockquote&gt;&lt;span style="font-size: 13.3333px;"&gt;Hoping for some help or a workaround to the screen recording issue! Thank you very much.&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;"&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;a class="if-quote-goto quote-link" href="#" data-id="25172"&gt;&lt;span class="goto"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class="quote-markup"&gt;[/quote]&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;If you're going to switch things to keyboard input, you not only need to change /validresponse and set the proper /inputdevice, you also need to adjust the various /branch attributes in your script accordingly. So, taking &lt;br/&gt;&lt;br/&gt;&amp;lt;trial yourturnexcludedbyC&amp;gt;&lt;br/&gt;/ stimulusframes = [1=ball3, blank2, blank1, selectinstructions]&lt;br/&gt;&lt;strong&gt;/ validresponse = (player1, player2)&lt;/strong&gt;&lt;br/&gt;/ branch = [if (&lt;strong&gt;trial.yourturnexcludedbyC.response == "player1"&lt;/strong&gt;) trial.player1turnexcludedbyC3to1]&lt;br/&gt;/ branch = [if (&lt;strong&gt;trial.yourturnexcludedbyC.response == "player2"&lt;/strong&gt;) trial.player2turnexcludedbyC3to2]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;as example, you would switch that to keyboard input like so&lt;br/&gt;&lt;br/&gt;&amp;lt;trial yourturnexcludedbyC&amp;gt;&lt;br/&gt;/ inputdevice = keyboard&lt;br/&gt;/ stimulusframes = [1=ball3, blank2, blank1, selectinstructions]&lt;br/&gt;&lt;strong&gt;/ validresponse = ("a", "l")&lt;/strong&gt;&lt;br/&gt;/ branch = [if (&lt;strong&gt;trial.yourturnexcludedbyC.response == 30&lt;/strong&gt;) trial.player1turnexcludedbyC3to1]&lt;br/&gt;/ branch = [if (&lt;strong&gt;trial.yourturnexcludedbyC.response == 38&lt;/strong&gt;) trial.player2turnexcludedbyC3to2]&lt;br/&gt;&amp;lt;/trial&amp;gt;&lt;br/&gt;&lt;br/&gt;30 is the keyboard scan code associated with the "a"-key on an English-language QWERTY keyboard; 38 is the keyboard scan code associated with the "l"-key.&lt;br/&gt;&lt;br/&gt;(See the "Keyboard Scan Codes" topic in the documentation as well as Tools -&amp;gt; Keyboard Scancodes...)&lt;br/&gt;&lt;br/&gt;</description><pubDate>Tue, 26 Jun 2018 17:30:58 GMT</pubDate><dc:creator>Dave</dc:creator></item></channel></rss>