Do you assume that your user will use a mouse? Think again, if you do. James Edwards has an informative article on making JavaScript input device independent. The key is to use the appropriate trigger elements and use behavioral pairing instead of event pairing. Think about the best solutions for keyboard and mouse accessibility instead of dumping keyboard and mouse events in the same pan. James also provides practical examples. It is a must read article even if only your nails brush with JavaScript.
