KeyboardKeyboard.upVersion: 23.5.0On this pageKeyboard.up() 方法 ¥Keyboard.up() method 调度 keyup 事件。 ¥Dispatches a keyup event. 签名 ¥Signature class Keyboard { abstract up(key: KeyInput): Promise<void>;} 参数 ¥Parameters 范围类型描述keyKeyInput要释放的密钥的名称,例如 ArrowLeft。有关所有键名称的列表,请参阅 KeyInput。 Returns: Promise<void>