Idk if the touch screen will interfere with this, but you could try disabling the touch screen with only the keyboard. If that works, here's some steps I came up with:
1: press windows key + r and run devmgmt.msc
2: Use tab and your arrow keys to get to Human Interface Devices and press the right arrow key to expand that
3: use the arrow keys to get to HID-compliant touch screen. and press enter
4: Press tab until the "General" tab has a border around it, then use the left/right arrow keys to get to the "Driver" tab.
5: press tab until "Disable" is selected, then press enter
6: in the prompt asking you if you want to disable this device, press y or an arrow key to highlight "yes" then press enter
Hopefully that works.