To solve Auto key pressing issue in Ubuntu 18.04 you can use the steps shared here.
Steps for solving Auto key pressing in Ubuntu :
Open Terminal with CTL + ALT + T
Type Xev command in the terminal as show in below
An Event Tester window will appear as shown below
Now note the keycode for the defaulted key
Now type the following command : xmodmap -e 'keycode "you_key_code"=NoSymbol and hit Enter.
This will solve the Auto key pressing in Ubuntu. you can try this method on your system for more understanding you can watch below video on this issue.
Thank you for your time, hope it will resolve your issue stay connected with softwoodcoder.