The AccessKey property is used to set or return a keyboard key used to access a control.
The access key allows a user to shift the focus of an input element, using the keyboard.
In most browsers, the access is invoked by pressing Alt (on PC) or Ctrl (on Mac) simultaneously with the accesskey character on the keyboard.
|AccessKey||The character used to access the control|
The following example sets the access key of a checkbox:
Your message has been sent to W3Schools.