# Function Button Problem

**URL:** https://forum.kirupa.com/t/function-button-problem/54140
**Category:** flash
**Created:** [June 11, 2004, 10:12am UTC](https://forum.kirupa.com/t/function-button-problem/54140 "2004-06-11T10:12:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Deland02](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@Deland02](https://forum.kirupa.com/u/Deland02)
#### Post date: [June 11, 2004, 10:12am UTC](https://forum.kirupa.com/t/function-button-problem/54140/1 "2004-06-11T10:12:39Z")

</div>

Could anyone offer a possible answer to my problem and tell me why the following script will not work?

[COLOR=Magenta]chromeless.on(keyPress “\<h\>”) = function()  
{  
getURL(“javascript:myChromeless.openChromeless()”);  
}[/COLOR]

All I want is the function to activate when the user presses the letter “h” on the keyboard.
