"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[57254],{3905:(n,e,t)=>{t.d(e,{Zo:()=>c,kt:()=>d});varr=t(67294);functiona(n,e,t){returneinn?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}functionp(n,e){vart=Object.keys(n);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){returnObject.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}returnt}functiono(n){for(vare=1;e<arguments.length;e++){vart=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){a(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}returnn}functioni(n,e){if(null==n)return{};vart,r,a=function(n,e){if(null==n)return{};vart,r,a={},p=Object.keys(n);for(r=0;r<p.length;r++)t=p[r],e.indexOf(t)>=0||(a[t]=n[t]);returna}(n,e);if(Object.getOwnPropertySymbols){varp=Object.getOwnPropertySymbols(n);for(r=0;r<p.length;r++)t=p[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(a[t]=n[t])}returna}varu=r.createContext({}),l=function(n){vare=r.useContext(u),t=e;returnn&&(t="function"==typeofn?n(e):o(o({},e),n)),t},c=function(n){vare=l(n.components);returnr.createElement(u.Provider,{value:e},n.children)},s={inlineCode:"code",wrapper:function(n){vare=n.children;returnr.createElement(r.Fragment,{},e)}},y=r.forwardRef((function(n,e){vart=n.components,a=n.mdxType,p=n.originalType,u=n.parentName,c=i(n,["components","mdxType","originalType","parentName"]),y=l(t),d=a,m=y["".concat(u,".").concat(d)]||y[d]||s[d]||p;returnt?r.createElement(m,o(o({ref:e},c),{},{components:t})):r.createElement(m,o({ref:e},c))}));functiond(n,e){vart=arguments,a=e&&e.mdxType;if("string"==typeofn||a){varp=t.length,o=newArray(p);o[0]=y;vari={};for(varuine)hasOwnProperty.call(e,u)&&(i[u]=e[u]);i.originalType=n,i.mdxType="string"==typeofn?n:a,o[1]=i;for(varl=2;l<p;l++)o[l]=t[l];returnr.createElement.apply(null,o)}returnr.createElement.apply(null,t)}y.displayName="MDXCreateElement"},90213:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>u,contentTitle:()=>o,default:()=>s,frontMatter:()=>p,metadata:()=>i,toc:()=>l});varr=t(87462),a=(t(67294),t(3905));constp={sidebar_label:"KeyInput"},o="KeyInput type",i={unversionedId:"api/puppeteer.keyinput",id:"version-17.0.0/api/puppeteer.keyinput",title:"KeyInput type",description:"All the valid keys that can be passed to functions that take user input, such as keyboard.press",source:"@site/versioned_docs/version-17.0.0/api/puppeteer.keyinput.md",sourceDirName:"api",slug:"/api/puppeteer.keyinput",permalink:"/api/puppeteer.keyinput",draft:!1,tags:[],version:"17.0.0",frontMatter:{sidebar_label:"KeyInput"},sidebar:"sidebar",previous:{title:"Keyboard.up",permalink:"/api/puppeteer.keyboard.up"},next:{title:"launch",permalink:"/api/puppeteer.launch"}},u={},l=[],c={toc:l};functions(n){let{components:e,...t}=n;return(0,a.kt)("wrapper",(0,r.Z)({},c,t,{components:e,mdxType:"MDXLayout"}),(0,a.kt)("h1",{id:"keyinput-type"},"KeyInput type"),(0,a.kt)("p",null,"All the valid keys that can be passed to functions that take user input, such as ",(0,a.kt)("a",{parentName:"p",href:"/api/puppeteer.keyboard.press"},"keyboard.press")),(0,a.kt)("p",null,(0,a.kt)("strong",{parentName:"p"},"Signature:")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-typescript"},"exportdeclaretypeKeyInput=\n|'0'\n|'1'\n|'2'\n|'3'\n|'4'\n|'5'\n|'6'\n|'7'\n|'8'\n|'9'\n|'Power'\n|'Eject'\n|'Abort'\n|'Help'\n|'Backspace'\n|'Tab'\n|'Numpad5'\n|'NumpadEnter'\n|'Enter'\n|'\\r'\n|'\\n'\n|'ShiftLeft'\n|'ShiftRight'\n|'ControlLeft'\n|'ControlRight'\n|'AltLeft'\n|'AltRight'\n|'Pause'\n|'CapsLock'\n|'Escape'\n|'Convert'\n|'NonConvert'\n|'Space'\n|'Numpad9'\n|'PageUp'\n|'Numpad3'\n|'PageDown'\n|'End'\n|'Numpad1'\n|'Home'\n