How can I use function key F1 for specifing help of my java application.

Thanks