If you can’t physically hit the above keys while playing the game, you can quickly rebind them instead by using third-party software.
For example, you can rebind the X key to the Spacebar instead of using it for this action. With this, you can just press “X” while playing the game to cancel an animation.
The procedures for employing this technique are as follows:
Step 1: Install AutoHotKey
First off, you need to install AutoHotkey and run it after a successful installation.
Step 2: Use an AutoHotKey Script
Next, create a script that will allow you to cancel animations. Simply copy the script shown below:
#IfWinActive Stardew Valley
x::
While GetKeyState(“x”,”P”)
{
sendEvent {LButton Down}
sleep 10
sendEvent {LButton Up}
sleep 125
sendEvent {r Down}{Delete Down}{RShift Down}
sleep 10
sendEvent {r Up}{Delete Up}{RShift Up}
}
sleep 30
return
Step 3: Run the Script
After that, save the script and then run it. You’ll notice a green H icon on your taskbar indicating it’s running.
Then, simply start the game and press the X key to cancel animations.
Do take note that the X key is typically used for Check/Do Actions. For that purpose, you can rebind it to the Spacebar instead.