import Mobilerun from '@mobilerun/sdk';const client = new Mobilerun({ apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted});await client.devices.keyboard.key('deviceId', { key: 0 });
Sends a single Android key event to the device, identified by its key code.
PUT
/
devices
/
{deviceId}
/
keyboard
JavaScript
import Mobilerun from '@mobilerun/sdk';const client = new Mobilerun({ apiKey: process.env['MOBILERUN_CLOUD_API_KEY'], // This is the default and can be omitted});await client.devices.keyboard.key('deviceId', { key: 0 });