method Keypress.prototype.thenimport { Keypress } from "https://deno.land/x/cliffy@v0.19.0/keypress/mod.ts"; then<T, S>(f: (v: KeyPressEvent) => T | Promise<T>, g?: (v: Error) => S | Promise<S>): Promise<T | S>Type ParametersTSParametersf: (v: KeyPressEvent) => T | Promise<T>optionalg: (v: Error) => S | Promise<S>ReturnsPromise<T | S>