<html> <body> <input type="text" size="40" id="myButton" accesskey="Z" value="Press Alt + Z to bring me into focus"> <button onclick="myButton.accessKey='N';">Change Access Key to N</button> </body> </html>